From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18967 invoked by alias); 21 Aug 2014 13:55:12 -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: 19028 Received: (qmail 19640 invoked from network); 21 Aug 2014 13:55:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_IMAGE_ONLY_16,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,T_REMOTE_IMAGE autolearn=no version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=RcCqTFkV+wLeP0+nESXE8Yx+z6NH0Gs+w6trIKNxcQM=; b=LpMThqYb8HHTgRLuxWIJ/7aebfcMa6opm/jtzMjGuWtGZ8YAdihRsCJo+CsDyLaIVy gSoIymc+B/rVn5Dn9dSUBFlrshXGdGPD7UZYsYyeN/wC81WGO71hKryMdcGKe1QI4GTE jV1ojrpPNFk112VIQN4Za+1xaHmjIU6iRgrNLYy2YOhTFST8YcNg9G4JQ/HKdZbRantn 6u/+fukjnvmOde+SjnDed1i4R07G7lQV6u4nnsWZh549swJO+X5kYM1nyYSFLfM7HOer uwEfIohbfEnz4Po6nApI4bSp5Cya7MWJjtwmZcSOAT8KMveA4i7uMr2BdUbBqXO+QSJT ev1g== X-Received: by 10.152.184.234 with SMTP id ex10mr49510677lac.53.1408629306927; Thu, 21 Aug 2014 06:55:06 -0700 (PDT) MIME-Version: 1.0 From: Jerry Rocteur Date: Thu, 21 Aug 2014 15:54:45 +0200 Message-ID: Subject: zsh array subscripting with ksh comp behaviour To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=001a11345d6675b01e050124110e --001a11345d6675b01e050124110e Content-Type: text/plain; charset=UTF-8 Hi, My company gives us our default zsh in ksh compatibility mode. I don't really like working this way so when I get a new shell I usually just type zsh and load up my favourite options I have noticed something strange, it is easy to solve but should this really be default behaviour, I thought I'd report it. ] arr=(one two three) ] echo ${arr[0]} one ] echo ${arr[1]} one ] echo ${arr[2]} two ] echo ${arr[3]} three setopt ksharrays ] echo ${arr[0]} one ] echo ${arr[1]} two ] echo ${arr[2]} three ] echo ${arr[3]} Regards, Jerry Rocteur --001a11345d6675b01e050124110e--