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

BUG: array splices



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