Bug 1825

Summary: hush back-quote expansion does not set $? properly
Product: Busybox Reporter: Ian Abbott <abbotti>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.16.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Ian Abbott 2010-05-24 12:04:25 UTC
In hush:

$ cmdout=`false`
$ echo $?
0

The $? variable should have been set to 1 (the exit code of the back-quoted command), not 0.
Comment 1 Ian Abbott 2010-05-24 12:08:27 UTC
Note that Busybox's 'ash' does it correctly.
Comment 2 Denys Vlasenko 2010-05-24 12:43:07 UTC
This is already fixed in git and will be working correctly in 1.17.x
Comment 3 Ian Abbott 2010-05-24 12:45:06 UTC
Thanks, Denys. I should have checked the git master branch first! Sorry for the noise.