From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18931 invoked by alias); 21 Nov 2010 20:12:32 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28428 Received: (qmail 23010 invoked from network); 21 Nov 2010 20:12:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <101121121158.ZM400@torch.brasslantern.com> Date: Sun, 21 Nov 2010 12:11:56 -0800 In-reply-to: <201011211702.oALH2ci6003141@pws-pc.ntlworld.com> Comments: In reply to Peter Stephenson "Re: PATCH: bash-style substrings & subarrays" (Nov 21, 5:02pm) References: <201011211702.oALH2ci6003141@pws-pc.ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org (Zsh hackers list) Subject: Re: PATCH: bash-style substrings & subarrays MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Nov 21, 5:02pm, Peter Stephenson wrote: } } If KSH_ARRAYS is not set, lots of aspects of arrays don't work in a } fashion consistent with other shells, so the fact that one feature you } chanced upon does so, doesn't help you write scripts properly. If you } want proper compatibility you need a full emulation. That would seem to me to be an argument for making the feature unavailable when not emulating, rather than for providing it but with zsh-specific semantics. Akin to how @(...) or +(...) have no special meaning without KSH_GLOB. Speaking of full emulation, has anyone looked at ksh's "typeset -T" ? http://www2.research.att.com/~gsf/man/man1/ksh-man.html#Variable%20Assignments http://www2.research.att.com/~gsf/man/man1/ksh-man.html#Type%20Variables --