Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Should zipping two empty arrays result in empty string?
- X-seq: zsh-users 22314
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Should zipping two empty arrays result in empty string?
- Date: Sat, 31 Dec 2016 22:49:56 -0500
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
The following code results in a single loop
a=() b=(); for n in "${(@)a:^b}"; do typeset -p n; done
typeset n=''
My question is, would anyone expect that? or would the you expect
nothing to expand, resulting in the loop not iterating?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author