Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _subscript quotes too much
- X-seq: zsh-workers 24801
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: _subscript quotes too much
- Date: Wed, 9 Apr 2008 02:11:57 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=S4n0tk8qXFvHQRRxCES64fPDKV7m9kMF9fkC9TUH2vc=; b=e2EcBL9+oVeHDX0J1raxkfiK1XVU6StlXIGykmzxMA7ZtywCBhVrx6VGDsW2CvTuz+zZVOefGerupZ44ig1hMcMHi/UtpWJz+A5vPCvGQNyNKVNo/OL7aG+MuKTYLYrthU0X0/9at/OwYHaEKeFWyTL+sv6rfHLQlwMeHNNNGVc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uTgjYPTzApgSN9hZNThCqYbn49ZHX5GmQ1DxIo8QhKC12Tx42tVDBP086nMlfZqYR/CZO7t/cs/T9Dj5jucUAp6WeHyU/5UuQVV3NqaLgL0p9wcZaq51QBrPrNBMlIk0zcFfBEhppI5uLg5WsXh/P0bbC9Jz66eBpmSa3G6fFao=
- In-reply-to: <237967ef0804081708h72b87699n6235099044238a13@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef0804081708h72b87699n6235099044238a13@xxxxxxxxxxxxxx>
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