On Fri, Apr 20, 2001 at 07:26:18PM -0700, Rodney W. Grimes wrote: > > (cat bigfilelist; echo destdir) | xargs cp > > I like this version of the patch!! It's much much cleaner than > hacking up cp or xargs, it even follows the unix principle of > using simple tools and glueing them togeather to do bigger > jobs, is unix implementation independent, and is very clear > in what it does. It's clean, simple, and unfortunately, totally bogus. Try: echo 1 2 3 4 5 6 7 8 9 | xargs -n 4 echo Now consider what would happen with the above suggested construct with a very long file list. I don't see a problem with adding an option to cp to treat the first argument as the target instead of the last argument. It's a simple solution, the code change is simple, and it produces the exact desired result. What's the problem? -Brian To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
- Re: cp -d dir patch for review (or 'xargs'?) Jens Schweikhardt
- Re: cp -d dir patch for review (or 'xargs'?) Ben Smithurst
- Re: cp -d dir patch for review (or 'xargs'?) Mike Smith
- Re: cp -d dir patch for review (or 'xargs'?) Jens Schweikhardt
- Re: cp -d dir patch for review (or 'xargs'?... Oliver Fromme
- Re: cp -d dir patch for review (or 'xar... Brian Somers
- Re: cp -d dir patch for review (or 'xargs'?) Rodney W. Grimes
- Re: cp -d dir patch for review (or 'xargs'?) Brian Dean
- Re: cp -d dir patch for review (or 'xargs'?... Brad Huntting
- Re: cp -d dir patch for review (or 'xargs'?... Rodney W. Grimes
- Re: cp -d dir patch for review (or 'xar... Brian Somers
- Re: cp -d dir patch for review (or... Sheldon Hearn
- Re: cp -d dir patch for review... Oliver Fromme
- Re: cp -d dir patch for re... Sheldon Hearn
- Re: cp -d dir patch for re... Oliver Fromme
- Re: cp -d dir patch for re... Sheldon Hearn
- Re: cp -d dir patch for re... Brian Dean
- Re: cp -d dir patch for re... Oliver Fromme