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

Re: _expand doesn't do brace expansion?



Bart Schaefer wrote:

> This is with all the latest patches (up to 11910):
> 
> zagzig[35] ls Functions/{Misc,Prompts}<TAB>
> Completing `file' or `corrections'(BEEP)
> zagzig[35] ls Functions/{Misc,Prompts}<C-x e>
> (BEEP)
> zagzig[35] ls Functions/{Misc,Prompts}<M-x expand-or-complete RET>
> zagzig[35] ls Functions/Misc Functions/Prompts
> 
> The test on line 85 is making it bail out early, but even with that test
> removed it doesn't expand the braces.

Oh, didn't everyone know that?

  % a='a{x,y}b'
  % echo ${(e)a}
  a{x,y}b
  % echo ${~a}
  a{x,y}b
  % echo damn
  right

Change (e)? Use `eval echo ...'? Urgh?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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