Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh adds empty string to local parameter when += is used
- X-seq: zsh-workers 47851
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: jamil bio <jamilbio20@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: zsh adds empty string to local parameter when += is used
- Date: Wed, 20 Jan 2021 17:22:59 +0100
- Archived-at: <https://zsh.org/workers/47851>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-01/CAN%3D4vMq6KOZBWp8Fhkp7Ma%3Dks%3D7FNH3wRcs4R-dqbYfLk0pBVg%40mail.gmail.com>
- In-reply-to: <a7422e8c-48cd-23eb-8fa9-66a85f0a9ad5@gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <a7422e8c-48cd-23eb-8fa9-66a85f0a9ad5@gmail.com>
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