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

${$^foo} weirdness



I stumbled on it when testing some other thing ...

bor@itsrm2:/tools/src/zsh-3.1.5-pws-13%> foo=(a b)
bor@itsrm2:/tools/src/zsh-3.1.5-pws-13%> bar=(x y)
bor@itsrm2:/tools/src/zsh-3.1.5-pws-13%> print ${$^foo}{1,2}$bar 
195811x 195812x y
bor@itsrm2:/tools/src/zsh-3.1.5-pws-13%> print ${${^foo}}{1,2}$bar
a b1x b2x y

cheers

/andrej

P.S. Same with zsh -f 'course :-)



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