Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Shell options during completion?



Peter Stephenson wrote:
> "Benjamin R. Haskell" wrote:
>> Then I guess my question is more PCRE-specific than I'd thought...  Is 
>> PCRE "usually" available?  (For some "most distros"/"most OS'es"/"most 
>> users" value of "usually")  Or should I just code up the 'fallback' path 
>> in my other example (since I'd have to code it anyway for the the 
>> doesn't-have-PCRE case)?
[...]
> You probably *can* assume POSIX regular expressions are available, i.e
> [[ ... =~ ... ]] with REMATCH_PCRE turned off.  That's tested for in
> configure, but I would expect most systems to provide it.

Aside from the pcre vs. posix regexes issue, I'm pretty sure you can do
most (if not all) the things extended posix regexes can do with zsh's
extended globbing. And are available no matter what the compile-time
configuration of the shell in question was.

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925



Messages sorted by: Reverse Date, Date, Thread, Author