patch 9.0.1656: syntax test fails when detected shell type differs
Problem: Syntax test fails when detected shell type differs.
Solution: Avoid using "/bin/sh", it depends on the system. Add a check that
the shell type detection is correct.
diff --git a/runtime/syntax/testdir/input/sh_01.sh b/runtime/syntax/testdir/input/sh_01.sh
index 2d4f6e8..bd27c99 100644
--- a/runtime/syntax/testdir/input/sh_01.sh
+++ b/runtime/syntax/testdir/input/sh_01.sh
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/dash
export `echo 'A=B'`
printenv A
echo a `#foo` b
diff --git a/runtime/syntax/testdir/input/sh_04.sh b/runtime/syntax/testdir/input/sh_04.sh
index 5c6ab04..e9ec5fe 100644
--- a/runtime/syntax/testdir/input/sh_04.sh
+++ b/runtime/syntax/testdir/input/sh_04.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/dash
# sh4
Variable=${VariableB:-{VariableC}}
Variable=${VariableB:-${VariableC:-{Var3:=eng}}}
diff --git a/runtime/syntax/testdir/input/sh_07.sh b/runtime/syntax/testdir/input/sh_07.sh
index 6fc4931..0e74227 100644
--- a/runtime/syntax/testdir/input/sh_07.sh
+++ b/runtime/syntax/testdir/input/sh_07.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/dash
# Test file to test 'for do done' loops.
# You can start this script like: $0 {-ne -gt -le ...} (all numeric operators
# are allowed!
diff --git a/runtime/syntax/testdir/input/sh_09.sh b/runtime/syntax/testdir/input/sh_09.sh
index 9888ade..e736e06 100644
--- a/runtime/syntax/testdir/input/sh_09.sh
+++ b/runtime/syntax/testdir/input/sh_09.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/dash
# Test file for vim the check () subshells
( cd ; $pwd ) | wc -c
( cd $1 ; $pwd ) | wc -c