Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ${${~:-*}//(#m)*/$MATCH=$MATCH} fails
- X-seq: zsh-workers 22691
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: ${${~:-*}//(#m)*/$MATCH=$MATCH} fails
- Date: Tue, 12 Sep 2006 15:49:08 +0100
- In-reply-to: <dbfc82860609120731m42199f1cnbb3c8de24595ec4f@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <dbfc82860609111536n545e6378i371458c3895c2997@xxxxxxxxxxxxxx> <200609120934.k8C9YJfc004342@xxxxxxxxxxxxxx> <dbfc82860609120731m42199f1cnbb3c8de24595ec4f@xxxxxxxxxxxxxx>
"Nikolai Weibull" wrote:
> Hm. My intent doesn't seem to have been clear. What I want it to do
> is print a list of files where each file is followed by an equal sign
> and the file again. This is for passing args to mkisofs with the
> -graft-points option.
You can't do that with parameter matching; it doesn't do globbing, which
is a completely separate, and later, phase of command line expansion.
Try
*(e:'REPLY=$REPLY=$REPLY':)
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
Messages sorted by:
Reverse Date,
Date,
Thread,
Author