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 c...@case.edu http://cnswww.cns.cwru.edu/~chet/