Re: du and wc should be able to read arguments from a file
Richard Dawe <[email protected]> Fri, 19 Sep 2003 21:53:17 +0100
| Newsgroups | gmane.comp.gnu.fileutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hello. Dave Gotwisner wrote: [snip] > Rather than assume it just takes a list of files, I would suggest strongly > that whoever chooses to implement this (if anyone does), they also allow > it to take other options as part of the file. > Literally, they should replace the "--process-file=foo" with the literal > contents of the file foo, not assuming they are files. This gives a nice > generic interface for scripting, and as such, as Jim says, any thing which > needs to be escaped should be. Maybe doing quote processing, to boot. [snip] If options were supported in the file, how would you perform operations on a file beginning with '-'? I suppose '--' could mean 'end of options' like it does on the command-line. Regards, -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]