simont: A picture of me in 2016 (Default)
simont ([personal profile] simont) wrote 2011-03-16 11:47 am (UTC)

Wrongly, of course :-) For this purpose the GNU version of xargs has the -0 switch which makes it expect to read filenames from standard input separated by NUL, and GNU find has a corresponding option -print0 which outputs in that format. But of course you can only use those if you know you'll never have to port to anything non-GNU, and nothing other than find will output in that format, and in any case the whole system ought ideally to have been set up so that it worked reliably without a user having to remember to add the special and obscure "work reliably" flag.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting