bug-bash
[Top][All Lists]
Advanced

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

Re: Question on $@ vs $@$@


From: Marc Chantreux
Subject: Re: Question on $@ vs $@$@
Date: Wed, 14 Aug 2024 11:04:08 +0200

> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]