Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _expand doesn't do brace expansion?
- X-seq: zsh-workers 11927
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: _expand doesn't do brace expansion?
- Date: Thu, 15 Jun 2000 12:45:22 +0200 (MET DST)
- In-reply-to: "Bart Schaefer"'s message of Thu, 15 Jun 2000 10:22:22 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> On Jun 15, 11:20am, Sven Wischnowsky wrote:
> } Subject: Re: _expand doesn't do brace expansion?
> }
> } Oh, didn't everyone know that?
>
> _complete manages to complete inside braces; why does the code that
> understands braces stop taking them apart when there's a closed pair?
> AFAICT, no completion works at all once any close brace is in place,
> even if that's within an outer set of braces, e.g.
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?
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author