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

Re: More about ksh_glob and completion



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