read command and ascii null as delimiter

2006-09-05 Thread Nathan Coulter
Feature request: an option, maybe "-0" to use ascii null as the delimiter for the "read" command. It would make the following two commands produce the same output: [EMAIL PROTECTED]:~/tmp5$ printf 'hello\000there' | xargs -n1 -0 echo hello there [EMAIL PROTECTED]:~/tmp5$ printf 'hello\000there

incorrect brace expansion when using default values

2006-09-05 Thread Mike Frysinger
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 pgp0Oi7rbI6UV.pgp Description: PGP signature ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listi

Re: incorrect brace expansion when using default values

2006-09-05 Thread Paul Jarc
Mike Frysinger <[EMAIL PROTECTED]> wrote: > this little bit of code doesnt work right: > foo() { echo "${1:-a{b,c}}" ; } Brace expansion happens before parameter expansion (man bash, EXPANSION). So the first "}" ends the parameter expression, and the second "}" isn't special. The result of param

Re: incorrect brace expansion when using default values

2006-09-05 Thread Mike Frysinger
On Tuesday 05 September 2006 19:01, Paul Jarc wrote: > Mike Frysinger <[EMAIL PROTECTED]> wrote: > > this little bit of code doesnt work right: > > foo() { echo "${1:-a{b,c}}" ; } > > Brace expansion happens before parameter expansion (man bash, > EXPANSION). So the first "}" ends the parameter ex