1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2023-06-24 00:56:50 +01:00
parent 2f43ec9363
commit 7d0dbd0070
17 changed files with 58 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
#! /bin/sh
#! /bin/dash
export `echo 'A=B'`
printenv A
echo a `#foo` b

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/dash
# sh4
Variable=${VariableB:-{VariableC}}
Variable=${VariableB:-${VariableC:-{Var3:=eng}}}

View File

@@ -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!

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/dash
# Test file for vim the check () subshells
( cd ; $pwd ) | wc -c
( cd $1 ; $pwd ) | wc -c