Re: Inconsistence when checking if a pattern is quoted or not for `==' a
From:
Clark J. Wang
Subject:
Re: Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]]
Date:
Fri, 18 Feb 2011 11:11:02 +0800
On Thu, Feb 17, 2011 at 11:04 PM, Andreas Schwab <schwab@linux-m68k.org>wrote:
> "Clark J. Wang" <dearvoid@gmail.com> writes:
>
> > The point is: ``Any part of the pattern may be quoted to force it to
> be
> > matched as a string.''
>
> "it" == part of the pattern.
>
>
So I've always been misunderstanding the bash manual (I'm not a native
English speaker :-) Or the manual is actually a bit misleading? :)
> > It's not clear to me what's the exact rule to tell if a pattern is
> > quoted or not.
>
> The rule is the same as everywhere: a quoted character loses its special
> meaning.
>
> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>
--
``... And it's a bash bug. I don't understand why bash people can't accept
that.'' - Linus Torvalds