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

Is quoting of the assigned value needed?



Hello,
SH_WORD_SPLIT doesn't seem to cause any effects in this context:

setopt SH_WORD_SPLIT
var1="a   b"
var2=$var1
print "$var2"

Output: a   b

And also ${:-} doesn't reveal any effects:

setopt SH_WORD_SPLIT
var1="a   b"
var2=${:-$var1}
print  "$var2"

Output: a   b

Is there however maybe a different option or substitution that would
influence the assignment when unquoted?

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org



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