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 47854
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: jamil bio <jamilbio20@xxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: zsh adds empty string to local parameter when += is used
- Date: Wed, 20 Jan 2021 16:31:36 +0000
- Archived-at: <https://zsh.org/workers/47854>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-01/20210120163136.GB5930%40tarpaulin.shahaf.local2>
- In-reply-to: <a7422e8c-48cd-23eb-8fa9-66a85f0a9ad5@gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <a7422e8c-48cd-23eb-8fa9-66a85f0a9ad5@gmail.com>
jamil bio wrote on Wed, Jan 20, 2021 at 13:16:54 -0300:
> echo "${#files[@]} -- ${files[@]}"
>
> 2 -- file1
> 3 -- file1 file2
> 4 -- file1 file2 file3
For future reference, there's «typeset -p files» and «print -r -- "${(q)files}"».
Messages sorted by:
Reverse Date,
Date,
Thread,
Author