Hi, hopefully a self-explanatory one today:
~ $ ( set -x -- {a..c}; echo "${*-"{1..3}"}" )
+ echo 'a b c' 'a b c' 'a b c'
a b c a b c a b c
~ $ ( set -x -- {a..c}; echo "${*/"{1..3}"/$*}" )
+ echo 'a b c' 'a b c' 'a b c'
a b c a b c a b c
I'm told similar glitches have been found before. Looks like this applies to
anything that has this sort of replacement context that contains valid brace
expansion syntax inside quotes.
Bash 4.2.24 - Gentoo amd64
--
Dan Douglas
signature.asc
Description: This is a digitally signed message part.
