Bug 7634 - exit status 127 if applet not found
Summary: exit status 127 if applet not found
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.22.x
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-12 01:48 UTC by eadmaster
Modified: 2014-11-17 16:04 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eadmaster 2014-11-12 01:48:29 UTC
if the applet is not found, return the exit status 127 instead of 1 as the POSIX standard suggests:
http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_08_02

This is useful for scripting purposes, for instance:
echo 1+2 | busybox bc
if [ $? -ne 127 ]; then ...
Comment 1 Denys Vlasenko 2014-11-17 16:04:55 UTC
Fixed in git