Follow-up Comment #8, bug #10678 (project findutils):

Command 4 works fine for me.  Your command 5 is slightly wrong.  By default
xargs does nothing with {} unless you specify -I.  Example:

[EMAIL PROTECTED]:~$ mkdir C#
[EMAIL PROTECTED]:~$ cd C#
[EMAIL PROTECTED]:~/C#$ touch "C# programmer's guide.doc"
[EMAIL PROTECTED]:~/C#$ ls -1
C# programmer's guide.doc
[EMAIL PROTECTED]:~/C#$ find -type f -print0 | xargs -0 -r md5sum
d41d8cd98f00b204e9800998ecf8427e  ./C# programmer's guide.doc
[EMAIL PROTECTED]:~/C#$ find -type f -print0 | xargs -0 -I{} -r md5sum {}
d41d8cd98f00b204e9800998ecf8427e  ./C# programmer's guide.doc

You used quotes in your fifth command, but in fact xargs does not pass the
commands it executes to the shell (nor does find -exec).  It just executes
them directly.  Therefore no quoting of the filenames to protect them from
interpretation by the shell is needed.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?10678>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-findutils mailing list
Bug-findutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to