Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
${a[(i)pattern]} if a=()
- X-seq: zsh-workers 24716
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: ${a[(i)pattern]} if a=()
- Date: Sun, 16 Mar 2008 14:40:38 +0000
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hiya,
$ zsh -f -c 'a=(b); echo ${a[(i)a]}'
2
$ zsh -f -c 'a=(); echo ${a[(i)a]}'
0
Shouldn't the above return 1?
That at leasts causes compinstall to fail on
elt=${amenu[(i)*select*]}
[...]
amenu[$elt]="select=$select"
__ci_do_selection:91: amenu: assignment to invalid subscript range
Best regards,
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author