bug-bash
[Top][All Lists]
Advanced

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

incorrect brace expansion when using default values


From: Mike Frysinger
Subject: incorrect brace expansion when using default values
Date: Tue, 5 Sep 2006 18:36:57 -0400
User-agent: KMail/1.9.4

this little bit of code doesnt work right:
foo() { echo "${1:-a{b,c}}" ; }

$ foo
a{b,c}
$ foo 1
a}

tested with bash-3.1.17
-mike

Attachment: pgpJJtcz3zYV4.pgp
Description: PGP signature


reply via email to

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