[Top][All Lists]

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

Re: RFE: request for quotes as grouping operators to work in brackets as

From: Chet Ramey
Subject: Re: RFE: request for quotes as grouping operators to work in brackets as elsewhere.
Date: Sat, 18 Sep 2010 18:52:42 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2

On 9/18/10 6:12 PM, Linda Walsh wrote:
>>> IT isn't the == operator that turns t??t into something that can match
>>> 'test'
>> It absolutely is.  If you don't think so, you fundamentally misunderstand
>> its purpose and operation.
> ---
>     Then where is the operator when you take the same chararcters
> t??t and place them as an argument to 'echo' or 'ls'
> echo t??t
> ls t??t
> The turn into something else there as well and there's no '==' to be
> found.

I really don't think you understand how this works, but I don't know
how to explain it a different way.

Pattern matching and regexp matching are essentially the same, and both
are active in contexts where they're defined to be active.  Pattern
matching is a component of pathname expansion, and is active when and
where pathname expansion occurs.  I think you're concentrating too hard
on whether or not there's an `operator' present.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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