bugfindutils - Bugs: bug #20891, exit status enhancement for xargs


bug #20891: exit status enhancement for xargs

Submitted by:  None
Submitted on:  Sat 25 Aug 2007 02:01:34 AM UTC  
Votes:  80  
Category: xargsSeverity: 1 - Wish
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Originator Name: Philip RowlandsOriginator Email: -unavailable-
Open/Closed: OpenRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 05 Nov 2013 09:21:33 AM UTC, comment #3:

Why this is waiting from 2007y ? it is 6 years!
This is strongly recommended improove exit codes. Unfortunately we chould save old beavior. What is my opinion:

1. add another option for switch on new exit code table
2. for exitcodes 0 to 123, xargs should check the biggest one from execution and return this
3. code 255 should be routed as is without mapping to 144. this is unneeded. who use them?
4. exitcode 1, unusable at now. map this to 124.

and should be add another option, when command returns any 'disaster' exits, script programmer could decide break or continue xargs execution.

Grzegorz Szyszlo <znik>
Sun 26 Jul 2009 11:30:02 PM UTC, comment #2:

If you had indicated who you were, O Anonymous, I could have helped you better I think. But anyway, I can't reproducte the problem I think you're describing with findutils 4.4.0 or 4.5.6-git.

~$ echo a b c | xargs false ; echo $?

James Youngman <jay>
Project Administrator
Thu 23 Jul 2009 05:27:17 PM UTC, comment #1:

It seems incompatible with other platforms' xargs implementation as well as even the find, that if the command formed by xarg encounters an error, no error status is returned. I will file a bug.

Sat 25 Aug 2007 02:01:34 AM UTC, original submission:

Please consider providing an option to govern the exit status passed by xargs from the subprocessses which it launches.

Alternative modes to the current behaviour might include returning the maximum exit status, the minimum, or the bitwise OR.



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

Attach File(s):

No files currently attached


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by znik (Voted in favor of this item)
  • -unavailable- added by znik (Posted a comment)
  • -unavailable- added by jay (Posted a comment)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 80 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 05 Nov 2013 09:31:27 AM UTCznikCarbon-Copy-=>Added znik
    Sun 29 Sep 2013 07:57:12 PM UTCjaySeverity3 - Normal=>1 - Wish
    Mon 24 Mar 2008 12:05:11 AM UTCjayDependencies-=>Depends on bugs #22708

    Back to the top

    Powered by Savane 3.1-cleanup1