diff options
author | jilles <jilles@FreeBSD.org> | 2010-05-09 16:04:32 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-05-09 16:04:32 +0000 |
commit | e9a796d71565b99dd0bd1e34ec08bc74e3e0e8c4 (patch) | |
tree | b2b0bc2cba274ba46b83dca8c276a2fe570c149b /tools | |
parent | 3615eb37e9f0b883e9dd49b26b093629667418c8 (diff) | |
download | FreeBSD-src-e9a796d71565b99dd0bd1e34ec08bc74e3e0e8c4.zip FreeBSD-src-e9a796d71565b99dd0bd1e34ec08bc74e3e0e8c4.tar.gz |
sh: Fix bug in assignment error test.
The test failed if the command returned nonzero exit status, and it really
should return that.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/bin/sh/errors/assignment-error1.0 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/bin/sh/errors/assignment-error1.0 b/tools/regression/bin/sh/errors/assignment-error1.0 index 9e42f2b..c999b41 100644 --- a/tools/regression/bin/sh/errors/assignment-error1.0 +++ b/tools/regression/bin/sh/errors/assignment-error1.0 @@ -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 |