[X-Unix] Re: X-Unix Digest, Vol 4, Issue 5

Doug McNutt douglist at macnauchtan.com
Thu Dec 23 12:33:32 PST 2004


At 14:03 -0600 12/23/04, Eugene wrote:
>Just checked the manual.  It's a feature that's available in newer
>shells like bash and zsh.  It's not there in sh, csh, and even tcsh.

It's OK in tcsh.

But watch for differences between things like

ls *[^0-9][0-9]*

and

echo *[^0-9][0-9]*

ls will sort the results differently.

The subject is "filename globbing" and there can be differences depending whether the glob is performed by the shell or by a tool. And. . . the syntax can be quite different from regular expressions as they are now pretty much defined by perl.
-- 

Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.


More information about the X-Unix mailing list