help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Unquoted $@ inside [[ ... ]]


From: Greg Wooledge
Subject: Re: [Help-bash] Unquoted $@ inside [[ ... ]]
Date: Mon, 21 Apr 2014 09:43:06 -0400
User-agent: Mutt/1.4.2.3i

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=$@



reply via email to

[Prev in Thread] Current Thread [Next in Thread]