Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh array subscripting with ksh comp behaviour
- X-seq: zsh-users 19028
- From: Jerry Rocteur <jerry.rocteur@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: zsh array subscripting with ksh comp behaviour
- Date: Thu, 21 Aug 2014 15:54:45 +0200
- 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==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author