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

Re: Parameter expansion



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