svn commit: r216398 - in head/tools/regression/bin/sh: errors
execution
Jilles Tjoelker
jilles at FreeBSD.org
Sun Dec 12 21:18:16 UTC 2010
Author: jilles
Date: Sun Dec 12 21:18:16 2010
New Revision: 216398
URL: http://svn.freebsd.org/changeset/base/216398
Log:
sh: Fix some tests that used sh instead of ${SH}
so they tested the wrong sh.
This was caused because these tests were committed after the sh -> ${SH}
change but were created before.
Modified:
head/tools/regression/bin/sh/errors/bad-keyword1.0
head/tools/regression/bin/sh/execution/func3.0
Modified: head/tools/regression/bin/sh/errors/bad-keyword1.0
==============================================================================
--- head/tools/regression/bin/sh/errors/bad-keyword1.0 Sun Dec 12 20:50:44 2010 (r216397)
+++ head/tools/regression/bin/sh/errors/bad-keyword1.0 Sun Dec 12 21:18:16 2010 (r216398)
@@ -1,4 +1,4 @@
# $FreeBSD$
-echo ':; fi' | sh -n 2>/dev/null && exit 1
+echo ':; fi' | ${SH} -n 2>/dev/null && exit 1
exit 0
Modified: head/tools/regression/bin/sh/execution/func3.0
==============================================================================
--- head/tools/regression/bin/sh/execution/func3.0 Sun Dec 12 20:50:44 2010 (r216397)
+++ head/tools/regression/bin/sh/execution/func3.0 Sun Dec 12 21:18:16 2010 (r216398)
@@ -3,5 +3,5 @@
# This may fail when parsing or when defining the function, or the definition
# may silently do nothing. In no event may the function be executed.
-sh -c 'unset() { echo overriding function executed, bad; }; v=1; unset v; exit "${v-0}"' 2>/dev/null
+${SH} -c 'unset() { echo overriding function executed, bad; }; v=1; unset v; exit "${v-0}"' 2>/dev/null
:
More information about the svn-src-head
mailing list