Bug 7634

Summary: exit status 127 if applet not found
Product: Busybox Reporter: eadmaster <mantoxpub>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs, mantoxpub
Priority: P5    
Version: 1.22.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

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