patchfindutils - Patches: patch #10125, fix bug #61356

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #10125: fix bug #61356

Submitter:  Mr. Shi <tongxiaoge>
Submitted:  Wed 20 Oct 2021 12:25:09 AM UTC
   
 
Category:  xargs bugfix Priority:  5 - Normal
Status:  Wont Do Privacy:  Public
Assigned to:  berny Originator Name: 
Open/Closed:  Closed Release:  None
Fixed Release:  None

Thu 21 Oct 2021 09:37:23 PM UTC, comment #1: 

Thanks for the report and the patch, but as discussed in
  https://savannah.gnu.org/bugs/index.php?61356
xargs is working correctly for the given input.

Therefore, I'm marking this patch as "wont do".

Have a nice day,
Berny

Bernhard Voelker <berny>
Group administrator
Wed 20 Oct 2021 12:25:09 AM UTC, original submission:  

When the -r, --no-run-if-empty option is combined with the -d, --delimiter
or -0, --null options, the -r, --no-run-if-empty option does not
take effect. The manual describes the intended behavior of the -r,
--no-run-if-empty option: "If the standard input does not contain any
nonblanks, do not run the command.  Normally, the command is run once even
if there is no input.  This option is a GNU extension."

The following command correctly outputs nothing.
xargs --no-run-if-empty -I str echo str <<< ""

The following command incorrectly outputs 1 empty line.
xargs --no-run-if-empty --delimiter="\n" -I str echo str <<< ""

The following command incorrectly outputs 2 empty lines.
xargs --no-run-if-empty --null -I str echo str <<< ""

fix https://savannah.gnu.org/bugs/?61356

Mr. Shi <tongxiaoge>

 

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

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by berny (Posted a comment)
  • -email is unavailable- added by tongxiaoge
  • -email is unavailable- added by tongxiaoge
  • -email is unavailable- added by tongxiaoge (Submitted the item)
  •  

    There are 0 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.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-10-21 berny CategoryNone xargs bugfix
        StatusNone Wont Do
        Assigned toNone berny
        Open/ClosedOpen Closed
    2021-10-20 tongxiaoge Carbon-Copy- Added berny
        Carbon-Copy- Added jay
    2021-10-20 tongxiaoge Attached File- Added 0001-When-the-r-no-run-if-empty-option-is-combined-with-t.patch, #52129

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code