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

Should zipping two empty arrays result in empty string?



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