Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Shell options during completion?
- X-seq: zsh-users 14811
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Shell options during completion?
- Date: Sun, 07 Feb 2010 20:05:21 +0000
- In-reply-to: Message from "Benjamin R. Haskell" <zsh@xxxxxxxxxx> of "Sun, 07 Feb 2010 14:02:17 EST." <alpine.LNX.2.01.1002071358330.2729@xxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
"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)?
It's probably safest to assume PCRE isn't available: pcre is often not
a package installed by default, may well not be present at all on
systems that aren't Linux or BSD distributions, and enabling it is a
special configure option.
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.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author