Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ${${~:-*}//(#m)*/$MATCH=$MATCH} fails



"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