svn commit: r207820 - head/tools/regression/bin/sh/errors
Jilles Tjoelker
jilles at FreeBSD.org
Sun May 9 16:04:32 UTC 2010
Author: jilles
Date: Sun May 9 16:04:32 2010
New Revision: 207820
URL: http://svn.freebsd.org/changeset/base/207820
Log:
sh: Fix bug in assignment error test.
The test failed if the command returned nonzero exit status, and it really
should return that.
Modified:
head/tools/regression/bin/sh/errors/assignment-error1.0
Modified: head/tools/regression/bin/sh/errors/assignment-error1.0
==============================================================================
--- head/tools/regression/bin/sh/errors/assignment-error1.0 Sun May 9 15:41:27 2010 (r207819)
+++ head/tools/regression/bin/sh/errors/assignment-error1.0 Sun May 9 16:04:32 2010 (r207820)
@@ -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
More information about the svn-src-all
mailing list