From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7999 invoked from network); 20 Dec 1998 04:49:12 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 20 Dec 1998 04:49:12 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id XAA25290; Sat, 19 Dec 1998 23:43:11 -0500 (EST) Resent-Date: Sat, 19 Dec 1998 23:43:11 -0500 (EST) Message-ID: <19981220044847.53415@athenaeum.demon.co.uk> Date: Sun, 20 Dec 1998 04:48:47 +0000 From: Phil Pennock To: Zsh Development Workers Subject: BUG: array splices Mail-Followup-To: Zsh Development Workers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1 Organisation: Organisation? Here? No, over there ----> X-Disclaimer: Any views expressed in this message, where not explicitly attributed otherwise, are mine and mine alone. Such views do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. X-Phase-of-Moon: The Moon is Waxing Crescent (2% of Full) Resent-Message-ID: <"DL2Xx2.0.2B6.V18Vs"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4854 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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?