[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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
- Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]], Clark J. Wang, 2011/02/17
- Re: Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]], Andreas Schwab, 2011/02/17
- Re: Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]], Clark J. Wang, 2011/02/17
- Re: Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]], Greg Wooledge, 2011/02/17
- Re: Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]], Andreas Schwab, 2011/02/17
- Re: Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]],
Clark J. Wang <=
- Re: Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]], Davide Brini, 2011/02/17
- Re: Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]], Pierre Gaston, 2011/02/17
- Re: Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]], Greg Wooledge, 2011/02/17
- Re: Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]], Andreas Schwab, 2011/02/17
- Re: Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]], Chet Ramey, 2011/02/17
- Re: Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]], Greg Wooledge, 2011/02/18
- Re: Inconsistence when checking if a pattern is quoted or not for `==' and `=~' in [[ ]], Clark J. Wang, 2011/02/18