mirror of
https://github.com/vim/vim
synced 2025-05-02 22:37:47 +02:00
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.
19 lines
485 B
Bash
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
|