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:17 PM jamil bio <jamilbio20@xxxxxxxxx> wrote:
>
> Hello good people,
>
> It seems there is a bug which I will describe below.
> I checked with usenet comp.unix.shell people and they said that is strange behavior.

I agree that it's strange. It's surprising to me (although I'm far
from being an expert in zsh).

Simpler test case:

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


Roman.




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