sh: Fix bug in assignment error test.
The test failed if the command returned nonzero exit status, and it really should return that.
This commit is contained in:
parent
e2404784e6
commit
941af8d6c6
@ -26,5 +26,5 @@ do
|
||||
done
|
||||
|
||||
# Other utilities must not abort; we currently still execute them.
|
||||
sh -c "readonly a=0; a=1 true; exit $a" 2>/dev/null || exit 1
|
||||
sh -c "readonly a=0; a=1 command :; exit $a" 2>/dev/null || exit 1
|
||||
sh -c 'readonly a=0; a=1 true; exit $a' 2>/dev/null || exit 1
|
||||
sh -c 'readonly a=0; a=1 command :; exit $a' 2>/dev/null || exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user