Chris F.A. Johnson wrote: > Quote them, and they do expand: > > $ foo() { echo "${1:-"a{b,c}"}" ; } > $ foo > ab ac
Brace expansion is essentially separate from the rest of the expansions: in fact, it's designed to be part of a separate library if desired. As such, it doesn't implement all of the shell's somewhat quirky quoting semantics. It understands simple single- and double-quoted strings and backslash escapes. The manual is perhaps not as clear about this as it could be. The quoted string, once the brace expansion code finishes, comes out like this: "${1:-a"b"}" "${1:-a"c"}" >From there, the results observed should be understandable. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day but today. Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/ _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash