bugfindutils - Bugs: bug #61341, Example given for xargs -o should...

 
 

bug #61341: Example given for xargs -o should use grep -lZ instead of grep -lz

Submitter:  Robin A. Meade <robin217>
Submitted:  Fri 15 Oct 2021 08:29:18 PM UTC
Votes: 7
 
Category:  documentation Severity:  3 - Normal
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  berny
Originator Name:  Open/Closed:  Closed
Release:  4.8.0 Fixed Release:  4.9.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 31 Dec 2021 02:24:17 AM UTC, comment #1: 

Sorry for the late reply, and thanks for the report.

Fixed with the attached patch, pushed at:
  https://git.savannah.gnu.org/cgit/findutils.git/commit/?id=2efc2d2e33c

(file #52590)

Bernhard Voelker <berny>
Group administrator
Fri 15 Oct 2021 08:29:18 PM UTC, original submission:  

https://www.gnu.org/software/findutils/manual/html_node/find_html/xargs-options.html

The example given for xargs -o is this:

   grep -lz PATTERN * | xargs -0o vi

It should be uppercase Z:

   grep -lZ PATTERN * | xargs -0o vi

grep's -z option indicates to treat input and output data as sequences of lines terminated by NUL.

grep's -Z option indicates to output a NUL after each filename in the output.

Robin A. Meade <robin217>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #52590:  0001-doc-fix-xargs-open-tty-example.patch added by berny (998B - text/x-patch - [PATCH] doc: fix 'xargs --open-tty' example)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by berny (Updated the item)
  • -email is unavailable- added by robin217 (Voted in favor of this item)
  • -email is unavailable- added by robin217 (Submitted the item)
  •  

    There are 7 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-12-31 berny Fixed ReleaseNone 4.9.0
    2021-12-31 berny Attached File- Added 0001-doc-fix-xargs-open-tty-example.patch, #52590
        Item GroupNone Wrong result
        StatusNone Fixed
        Assigned toNone berny
        Open/ClosedOpen Closed
        ReleaseNone 4.8.0
    2021-10-17 robin217 Carbon-Copy- Added robin217

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code