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

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



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