view runtime/syntax/testdir/input/sh_09.sh @ 32669:448aef880252

normalize line endings
author Christian Brabandt <cb@256bit.org>
date Mon, 26 Jun 2023 09:54:34 +0200
parents ae505eaf2794
children 695b50472e85
line wrap: on
line source

#!/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