summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-12-12 21:18:16 +0000
committerjilles <jilles@FreeBSD.org>2010-12-12 21:18:16 +0000
commitaed1bf9f019ad07ea82b7ccd463d2e82d8affe82 (patch)
tree599d85ffe078e4c449449e0e55ba50c3404ebe86
parent2457b51af4ab096fb3df2accffda5f1d9ec6e3f2 (diff)
downloadFreeBSD-src-aed1bf9f019ad07ea82b7ccd463d2e82d8affe82.zip
FreeBSD-src-aed1bf9f019ad07ea82b7ccd463d2e82d8affe82.tar.gz
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.
-rw-r--r--tools/regression/bin/sh/errors/bad-keyword1.02
-rw-r--r--tools/regression/bin/sh/execution/func3.02
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/bin/sh/errors/bad-keyword1.0 b/tools/regression/bin/sh/errors/bad-keyword1.0
index 1abc158..ac01536 100644
--- a/tools/regression/bin/sh/errors/bad-keyword1.0
+++ b/tools/regression/bin/sh/errors/bad-keyword1.0
@@ -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
diff --git a/tools/regression/bin/sh/execution/func3.0 b/tools/regression/bin/sh/execution/func3.0
index f7a562a..e0ed581 100644
--- a/tools/regression/bin/sh/execution/func3.0
+++ b/tools/regression/bin/sh/execution/func3.0
@@ -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
:
OpenPOWER on IntegriCloud