vim/runtime/syntax/testdir/input/sh_09.sh
Bram Moolenaar 7d0dbd0070 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.
2023-06-24 00:56:50 +01:00

19 lines
485 B
Bash

#!/bin/dash
# Test file for vim the check () subshells
( cd ; $pwd ) | wc -c
( cd $1 ; $pwd ) | wc -c
( cd ${1} ; $pwd ) | wc -c
( cd ; $pwd ) | wc -c
( cd ${1:-.} ; $pwd ) | sed -e 's!$!/!' -e 's!//*$!/!'
( cd ; $pwd ) | wc -c
( cd ${1:+.} ; $pwd ) | wc -c
( cd ; $pwd ) | wc -c
( cd ${1:=.} ; $pwd ) | wc -c
( cd ; $pwd ) | wc -c
( cd ${1:?} ; $pwd ) | wc -c
( cd ; $pwd ) | wc -c
( cd $HOME ; $pwd ) | wc -c
( cd ${HOME} ; $pwd ) | wc -c
( cd ${HOME} ) | wc -c
((n=1+2))
let n=1+2