Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Parameter expansion
- X-seq: zsh-users 2275
- From: mason@xxxxxxxxxxxxxxx (Geoff Wing)
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: Parameter expansion
- Date: 1 Apr 1999 07:30:52 GMT
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: PrimeNet Computer Consultants
- References: <990331075131.ZM24171@xxxxxxxxxxxxxxxxxxxxxxx> <14083.4141.374266.213229@xxxxxxxxxxxxxxxxxx>
- Reply-to: mason@xxxxxxxxxxxxxxx
Rob Hooft <r.hooft@xxxxxxxxxxxx> typed:
:>>>>> "BS" == Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> writes:
: BS> On Mar 31, 6:04pm, Mircea Damian wrote: } Subject: Re: Parameter
: BS> expansion } } On Wed, Mar 31, 1999 at 02:54:01PM +0000, Geoff
: BS> Wing wrote: } > Mircea Damian <dmircea@xxxxxxxx> typed: } > :zip
: BS> backup.zip $(<index.txt) } > } > zip backup.zip $(eval echo
: BS> $(<index.txt))
: BS> eval zip backup.zip $(<index.txt)
: BS> zip backup.zip ${~$(<index.txt)}
:I understand this is a zsh mailinglist, but I find the shell-independent
: xargs zip backup.zip < index.txt
:more readable, and it gracefully handles the case where index.txt is too
:long for the command line....
Yep, though Bart's example ``zip backup.zip ${~$(<index.txt)}'' handles
the case where names have spaces in them.
Regards,
--
Geoff Wing <gcw@xxxxxxxxx> Mobile : (Australia) 0412 162 441
Work URL: http://www.primenet.com.au/ Ego URL: http://pobox.com/~gcw/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author