zsh-users
 help / color / mirror / code / Atom feed
* Should zipping two empty arrays result in empty string?
@ 2017-01-01  3:49 Eric Cook
  2017-01-01  5:18 ` Kannan Varadhan
  2017-01-01 20:24 ` Bart Schaefer
  0 siblings, 2 replies; 6+ messages in thread
From: Eric Cook @ 2017-01-01  3:49 UTC (permalink / raw)
  To: zsh-users

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?


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-01-01 20:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-01  3:49 Should zipping two empty arrays result in empty string? Eric Cook
2017-01-01  5:18 ` Kannan Varadhan
2017-01-01  8:50   ` Eric Cook
2017-01-01  9:17     ` Eric Cook
2017-01-01 20:24 ` Bart Schaefer
2017-01-01 20:27   ` [PATCH] zipping two empty arrays should not result in empty string Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).