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

${^var} and word splitting



$ a='  1 2   3  '
$ print -l $=a
1
2
3
$ print -l x$^=a
x
x1
x2
x3
x
$ print -l x${^${=a}}
x1
x2
x3


Why the extra "x" lines with x$^=a ?

Same for the (s:sep:) or (f) expansion flags.

-- 
Stephane



Messages sorted by: Reverse Date, Date, Thread, Author