bug-bash
[Top][All Lists]
Advanced

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

Re: How to use [[ string =~ regexp ]]?


From: Bob Proulx
Subject: Re: How to use [[ string =~ regexp ]]?
Date: Sun, 21 May 2006 21:20:31 -0600
User-agent: Mutt/1.5.9i

Chet Ramey wrote:
> It seems reasonable that quoting any part of the rhs to the =~
> operator should cause it to behave in the same manner.
> 
> Since the arguments to [[ don't undergo any of the expansions that
> require quoting to protect them, there's no reason for =~ to act
> differently than the other operators that do pattern matching.

That makes sense to me.  Thanks for the clarification and education.

Bob




reply via email to

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