Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
BUG: array splices
- X-seq: zsh-workers 4854
- From: Phil Pennock <phil@xxxxxxxxxxxxxxxxxxxxx>
- To: Zsh Development Workers <zsh-workers@xxxxxxxxxxxxxxx>
- Subject: BUG: array splices
- Date: Sun, 20 Dec 1998 04:48:47 +0000
- Mail-followup-to: Zsh Development Workers <zsh-workers@xxxxxxxxxxxxxxx>
- Organisation: Organisation? Here? No, over there ---->
This applies to 3.1.5-pws-3 and -pws-4 -- not before that, I think.
./zsh -f
% set a b c d e
% print $*
a b c d e
% print $argv[2,4]
b
%
Basically, for any ${arrayname[start,stop]} zsh now seems to ignore the
comma and everything after it, such that the expression becomes exactly
equivalent to ${arrayname[start]}
An interesting feature.
--
--> Phil Pennock ; GAT d- s+:+ a22 C++(++++) UL++++/I+++/S+++/H+ P++@ L+++
E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++ DI+ D+
G+ e+ h* r y?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author