Update of bug #39824 (project findutils):

             Assigned to:                    None => jay                    
                 Summary: Add suggestion 'ls | tr \\n \\0 | xargs -0 command'
to xargs man page => Add suggestion 'ls | tr \n \0 | xargs -0 command' to
xargs man page

    _______________________________________________________

Follow-up Comment #2:

I don't think the suggested extra paragraph is an improvement, really.  
Solving the problem for whitespace-but-not-newlines only solves part of the
problem.   Examples in manpages should, as far as possible, not come with
pitfalls.

Lack of a -0 option isn't a problem in the case you suggest (since the program
being invoked, xargs, has -0).   Even if it did lack that option, the "tr"
approach is suboptimal compared to, for example

find . -maxdepth 1 -mindepth 1 -regex regexp -exec stat {} \+


    _______________________________________________________

Reply to this item at:

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

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


Reply via email to