Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
${$^foo} weirdness
- X-seq: zsh-workers 5894
- From: "Andrej Borsenkow" <borsenkow.msk@xxxxxx>
- To: "ZSH workers mailing list" <zsh-workers@xxxxxxxxxxxxxx>
- Subject: ${$^foo} weirdness
- Date: Tue, 23 Mar 1999 15:23:42 +0300
- Importance: Normal
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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