Re: Question on $@ vs $@$@

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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






[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux