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

Re: _subscript quotes too much



On 09/04/2008, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> % zsh -f
>  % autoload -U compinit; compinit
>  % typeset -A foo
>  % foo[bar]=baz
>  % foo[*.txt]=blue
>  % echo $foo[<tab><tab><tab>
>  % echo $foo[\*.txt]
>
>  % echo $foo[*.txt]
>  blue
>
>  I had a look at _subscript but it didn't mean much to me. I thought
>  maybe there was a (q) too many but there are none at all.

Also a bit weird,
% foo[{]=bar
zsh: no matches found: foo[{]=bar
% foo[{a,b}]=bar
% echo $foo[\{a,b\}] #produced by tab complete
bar
% echo $foo[\{a,b}]
bar
% echo $foo[{a,b}]
bar
% echo $foo['{a,b}']


I guess I'm wandering into the land of very subtle rules here... :)

-- 
Mikael Magnusson



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