Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Shell options during completion?
- X-seq: zsh-users 14814
- From: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: Shell options during completion?
- Date: Sun, 7 Feb 2010 15:25:17 -0500 (EST)
- Cc: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- In-reply-to: <87zl3kyf5s.fsf@xxxxxxxxxxxxxxxxxxxxxx>
- 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
- References: <201002072005.o17K5LgH004755@xxxxxxxxxxxxxxxxxxx> <87zl3kyf5s.fsf@xxxxxxxxxxxxxxxxxxxxxx>
On Sun, 7 Feb 2010, Frank Terbeck wrote:
> 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.
Looks like our messages crossed paths, but yes, that's the conclusion
I'm coming to. (Guess it's just a matter of practice then -- was only
using PCRE because I'm better with Perl than with Zsh.)
Thanks for the supporting evidence.
--
Best,
Ben
Messages sorted by:
Reverse Date,
Date,
Thread,
Author