bug-findutils
[Top][All Lists]
Advanced

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

[bug #39824] Add suggestion 'ls | tr \\n \\0 | xargs -0 command' to xarg


From: James Youngman
Subject: [bug #39824] Add suggestion 'ls | tr \\n \\0 | xargs -0 command' to xargs man page
Date: Tue, 20 Aug 2013 17:03:07 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36

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

[Prev in Thread] Current Thread [Next in Thread]