zsh-workers
 help / color / mirror / code / Atom feed
* $^=var and leading/trailing blanks
@ 2016-10-08 15:12 Stephane Chazelas
  2016-10-11  3:18 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Stephane Chazelas @ 2016-10-08 15:12 UTC (permalink / raw)
  To: Zsh hackers list

$ a='  a b '
$ print -l +$^=a
+
+a
+b
+
$ print -l "${(@)^=a}"

a
b

$ print -l +${^${=a}}
+a
+b

Why the extra first and last element the the first two commands?

-- 
Stephane


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

end of thread, other threads:[~2016-10-11  4:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-08 15:12 $^=var and leading/trailing blanks Stephane Chazelas
2016-10-11  3:18 ` 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).