Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
parameter expansion within a string not working?
- X-seq: zsh-users 11214
- From: "Pax Unix" <paxunix@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: parameter expansion within a string not working?
- Date: Tue, 20 Feb 2007 17:40:20 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=PIH9T7ULniKOH+cNLx+Y8p3xEafzrj0G7F1eRIjesrBNv7xR2EJD0nCVjJi7soKATHQ1mK2AtM0+iGhci5Z8IMSwSCc5hsJZXky8SzTgkNYV8t27GGb65ePq1+QhrAKA24gKlYw+boUBh1/DXXVqc5fRi7FeaTbXTxq8MfLFY+w=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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