bug-bash
[Top][All Lists]
Advanced

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

Re: manpage note? weird strings that appear to be equal but create haywi


From: Greg Wooledge
Subject: Re: manpage note? weird strings that appear to be equal but create haywire comparisons?
Date: Wed, 26 Aug 2009 09:42:24 -0400
User-agent: Mutt/1.4.2.3i

On Wed, Aug 26, 2009 at 04:36:42PM +0300, Pierre Gaston wrote:
> Thanks, I agree with that, I'm sorry I should have been more explicit,
> what was not clear to me was where this special role of the \ is explained,
> Because if you use literals  [[ something = \* ]] is the same as [[
> something = "*" ]]

The difference is whether it's being read by the parser or not.  When you
put the quotes directly into the command like that, the parser sees them,
acknowledges their function, and removes them.  When they're part of a
variable substitution, they're not removed.




reply via email to

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