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

Re: zsh adds empty string to local parameter when += is used



On Wed, Jan 20, 2021 at 5:26 PM Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
>
> Yes, this is a bit weird, but it's explicable.

Does the following look inconsistent though?

    % zsh -fc 'typeset x; x+=(); typeset -p x'
    typeset -a x=( '' )
    % zsh -fc 'typeset x; typeset -a x; typeset -p x'
    typeset -a x=(  )

Roman.




Messages sorted by: Reverse Date, Date, Thread, Author