forked from aniani/vim
20 lines
483 B
Bash
20 lines
483 B
Bash
|
|
#!/bin/sh
|
||
|
|
# 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
|