Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Shell options during completion?
- X-seq: zsh-users 14809
- From: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: Shell options during completion?
- Date: Sun, 7 Feb 2010 14:02:17 -0500 (EST)
- Cc: Zsh Users <zsh-users@xxxxxxx>
- In-reply-to: <201002071855.o17ItY1O004254@xxxxxxxxxxxxxxxxxxx>
- 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: <201002071855.o17ItY1O004254@xxxxxxxxxxxxxxxxxxx>
On Sun, 7 Feb 2010, Peter Stephenson wrote:
> "Benjamin R. Haskell" wrote:
> > Are completion functions called with some consistent set of shell
> > options?
>
> It's the set _comp_options you'll find in the compinit function. Note
> this doesn't reset the options, it sets only the values given, so some
> options set by the user are passed through. There may be more that
> shouldn't be (typically those affecting syntax); if you need some
> special behaviour for one function you can "setopt localoptions
> <that-option>".
>
Hmm. Thanks, that's useful.
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)?
--
Best,
Ben
Messages sorted by:
Reverse Date,
Date,
Thread,
Author