URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13878>
Summary: xargs exits with exitcode 1 instead of 123 if
invoked command fails
Project: findutils
Submitted by: ametzler
Submitted on: Don 21.07.2005 um 17:33
Category: xargs
Severity: 3 - Normal
Item Group: Wrong result
Status: None
Privacy: Public
Assigned to: None
Originator Name: Glenn Ammons
Originator Email: [EMAIL PROTECTED]
Open/Closed: Open
Release: 4.2.22
Fixed Release: None
_______________________________________________________
Details:
Hello,
this is http://bugs.debian.org/319085 reported by Glenn Ammons:
---------------------
xargs exits with the wrong status when the command exits with status 1:
% false; echo $?
1
% echo foo | xargs -t false; echo $?
false foo
0
The exit status ought to be 123, according to the man page:
xargs exits with the following status:
0 if it succeeds
123 if any invocation of the command exited with status 1-125
---------------------
I've verifioed that this applies to 4.2.22 and current CVS, 4.120 worked as
documented.
thanks, cu andreas
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
[EMAIL PROTECTED] | Originator Email
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13878>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils