Re: Question on $@ vs $@$@

Marc Chantreux <[email protected]>
Newsgroups org.kernel.vger.dash
Message-ID <ZrxzCOnZv-HffFuB@prometheus>
> We know what "$@" is supposed to do.  And something like "x${@}y" is
> well-defined also -- you simply prefix "x" to the first word, and append
> "y" to the final word.

> But I don't know how "$@$@" is supposed to be interpreted.  I do not see
> anything in the official wording that explains how it should work.

As the doc you just mention said: let's set A B C

     "x$@y"    yA" "B" "Cy"

So the only consistent behavior I see is

     "$@$@"    A" "B" "CA" "B" "C"
                        ^-("$3$1")

     "$@ $@"    A" "B" "C A" "B" "C"
                        ^-("$3 $1")

I'm really currious: do you see another one ?

regards

-- 
Marc Chantreux
Pôle CESAR (Calcul et services avancés à la recherche)
Université de Strasbourg
14 rue René Descartes,
BP 80010, 67084 STRASBOURG CEDEX
03.68.85.60.79
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.