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


bug #20891: exit status enhancement for xargs

Submitted by:  None
Submitted on:  Sat Aug 25 02:01:34 2007  
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 MarkupRich Markup):

You are not logged in

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


Tue Nov 5 09:21:33 2013, 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 Jul 26 23:30:02 2009, 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 Jul 23 17:27:17 2009, 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 Aug 25 02:01:34 2007, 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 Nov 5 09:31:27 2013znikCarbon-Copy-=>Added znik
    Sun Sep 29 19:57:12 2013jaySeverity3 - Normal=>1 - Wish
    Mon Mar 24 00:05:11 2008jayDependencies-=>Depends on bugs #22708

    Back to the top

    Powered by Savane 3.1-cleanup1