From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12623 invoked by alias); 23 Sep 2015 15:59:25 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20635 Received: (qmail 22041 invoked from network); 23 Sep 2015 15:59:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=X+5rdgje c=1 sm=1 tr=0 a=62AtbbSsrca3scplPJj5lw==:117 a=62AtbbSsrca3scplPJj5lw==:17 a=N659UExz7-8A:10 a=zEYEER_e2xombzf3AzwA:9 a=pILNOxqGKmIA:10 a=9QyFDsp2dzgA:10 Message-id: <5602CC56.8080501@eastlink.ca> Date: Wed, 23 Sep 2015 08:59:18 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: easy References: <20150911191854.59bcadb5@ntlworld.com> In-reply-to: <20150911191854.59bcadb5@ntlworld.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit When we do this: $ test () { echo @[2,-1]; } $ test one two three four five two three four five ... why is it that the leading number works intuitively but the second one is 'off by one' so to speak? Nothing is removed from the end of the array so one might expect " [2,-0] ". I don't doubt there's a good reason but what is it? How should I think the syntax?