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:
Jilles Tjoelker 2010-05-09 16:04:32 +00:00
parent e2404784e6
commit 941af8d6c6

View File

@ -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