From: Le Wang <lewang@yahoo.com>
To: Zsh users list <zsh-users@sunsite.dk>
Subject: parameter expansion question
Date: Sat, 18 Jan 2003 18:32:14 -0500 (EST) [thread overview]
Message-ID: <20030118233214.43327.qmail@web12305.mail.yahoo.com> (raw)
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
next reply other threads:[~2003-01-18 23:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-18 23:32 Le Wang [this message]
2003-01-19 6:33 ` Bart Schaefer
2003-01-19 22:33 ` Le Wang
2004-01-18 0:28 Szekeres István
2004-01-18 1:54 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030118233214.43327.qmail@web12305.mail.yahoo.com \
--to=lewang@yahoo.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).