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

Re: _expand doesn't do brace expansion?



I wrote:

> It simply gives up.
> 
> With `a{b,c}<TAB>' the completion code would have to generate the
> matches for `ab' and `ac', then built the intersection to get the
> suffixes (and prefixes if there's a suffix, i.e. the middle-strings)
> which are in both sets (in all n sets, actually). And that mey be
> combined with arbitrarily complicated match specs. Frightening.
> 
> Or have I missed something?

Errr, sorry. With `a{{c,d},' it could work, of course. But it still
gives up, hm.


About the other thing, a careful `eval exp=(...)' could do the job
(avoiding error messages and such).


Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author