Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: More about ksh_glob and completion
- X-seq: zsh-workers 14157
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: More about ksh_glob and completion
- Date: Mon, 30 Apr 2001 11:41:07 +0200 (MET DST)
- In-reply-to: <Tc0a88d01533b303020@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Peter Stephenson wrote:
> ...
>
> But I still think precompiling patterns is OK as long as you do it at the
> point of first use. The difficult case
>
> % unsetopt kshglob
> % testpat() { setopt kshglob; [[ $1 = @(aardvark|bison) ]]; }
>
> will always work so long as the pattern is compiled at that point.
Yes, that's what we do: see, for example, the reference to the `pats'
array in the Eprog in cond.c:199 (execcase() contains similar code).
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author