[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash-3.0: brace expansion vs variable expansion
From: |
Tim Waugh |
Subject: |
bash-3.0: brace expansion vs variable expansion |
Date: |
Wed, 4 Aug 2004 11:01:40 +0100 |
User-agent: |
Mutt/1.4.1i |
This short script:
var=baz
echo foo{bar,${var}.}
echo foo{bar,${var}}
gives the following output with bash-3.0:
./test: line 2: foo${var.}: bad substitution
foobar} foobaz
The output I expect, and which bash-2.05b gives, is:
foobar foobaz.
foobar foobaz
If I change the script to use '$var' instead of '${var}' it works
fine.
Tim.
*/
pgpU8EVx3lSoo.pgp
Description: PGP signature
- bash-3.0: brace expansion vs variable expansion,
Tim Waugh <=