Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: bash-style substrings & subarrays
- X-seq: zsh-workers 28428
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: bash-style substrings & subarrays
- Date: Sun, 21 Nov 2010 12:11:56 -0800
- In-reply-to: <201011211702.oALH2ci6003141@xxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <201011211702.oALH2ci6003141@xxxxxxxxxxxxxxxxxxx>
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
--
Messages sorted by:
Reverse Date,
Date,
Thread,
Author