Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: copying an array
On Thu, Aug 7, 2014 at 10:12 PM, Dominik Vogt <vogt@xxxxxxxxxxxxxxxxxx>
wrote:
>
> Is there a specific reason why typeset cannot initialize arrays?
>
In zsh, "typeset" is not a syntactic keyword, it's just an ordinary builtin
command. So its arguments must follow the standard metacharacter,
word-break, and quoting rules that apply to the arguments of any command.
Parenthesized array-assignment syntax can't be used, and unlike "set" the
arguments of "typeset" after the first are already given different
semantics so they can't be interpreted as values of the array.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author