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

parameter expansion within a string not working?



To demonstrate:

$ zsh -f -c 'blah=(xa xb ya yb); print ${(t)blah}; print 0${blah:#x*}0'
array
0ya yb0

as expected.  However:

$ zsh -f -c 'blah=(xa xb ya yb); print ${(t)blah}; print "0${blah:#x*}0"'
array
00

which I found rather surprising.  Am I missing something regarding
expansions within double-quotes?

--
Shawn Halpenny



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