bug-bash
[Top][All Lists]
Advanced

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

Re: echo $s{2,3}


From: Bernd Eggink
Subject: Re: echo $s{2,3}
Date: Sat, 13 Dec 2008 10:44:09 +0100
User-agent: Thunderbird 2.0.0.18 (X11/20081105)

jidanni@jidanni.org schrieb:
What happened to 2,3? Poof, gone.
$ s=a; echo $s{ $s{} $s} $s{1} $s{2,3} ${s}{4,5}
a{ a{} a} a{1} a4 a5

As the manual says, brace expansion is performed before any other expansions. So $s{2,3} expands to $s2 $s3, and that expands to nothing if neither s2 nor s3 are set.

Regards,
Bernd

--
Bernd Eggink
http://sudrala.de




reply via email to

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