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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to