Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
parameter expansion question
- X-seq: zsh-users 5751
- From: Le Wang <lewang@xxxxxxxxx>
- To: Zsh users list <zsh-users@xxxxxxxxxx>
- Subject: parameter expansion question
- Date: Sat, 18 Jan 2003 18:32:14 -0500 (EST)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi,
I can force a variable to be expanded by using
${~var}. Is there any way I can force a string to be
expanded without assigning it to a variable first?
I'm after the same information for filename
generation. For exampel:
Right now, if I want to see if the glob pattern
'(#i)${i%.rar}*.par' would match anything, I would do:
parFile=`print (#i)${i%.rar}*.par`
if I use:
parFile=(#i)${i%.rar}*.par
Zsh thinks I want an array.
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
Messages sorted by:
Reverse Date,
Date,
Thread,
Author