tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/44246: enhance mv to work better with xargs

> Isn't find(1) -printx exactly designed for this ?

No, that's designed to work around the whitespace-and-quoting
misfeature of xargs, not the "arguments are appended only at the end"
one the PR cites.  (More recent NetBSD xargses have options like -I and
-J which partially fix those.)

-printx is also of no use unless the data are coming from find(1), and
even then only if the intermediate procesing (if any) doesn't mind the
quoting.  While xargs is perhaps most commonly used with pathnames from
find, that is hardly its only use.

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML      
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Home | Main Index | Thread Index | Old Index