On Sun, Apr 20, 2014 at 10:34:18PM -0400, Chet Ramey wrote:
> It's a bug. There are slight differences in how bash expands unquoted $*
> and $@ in different contexts. Try the attached patch for a proposed fix.
The patch seems to work for the cases that I tested:
[[ $@ = ,* ]]
case $@ in ...
x=$@