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

Re: Parameter expansion



>>>>> "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....

-- 
=====   R.Hooft@xxxxxxxxxxxx   http://www.xs4all.nl/~hooft/rob/  =====
=====   R&D, Nonius BV, Delft  http://www.nonius.nl/             =====
===== PGPid 0xFA19277D ========================== Use Linux! =========



Messages sorted by: Reverse Date, Date, Thread, Author