Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: bash-style substrings & subarrays



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