1 # first try some invalid patterns (do in subshell due to parsing error)
2 # (set argv0 to "SHELL" to avoid "/path/to/shell: blah" in error messages)
3 "$THIS_SH" -c 'echo ${:-}' SHELL
10 echo _$1 _${1-} _${1:-} _${1-word} _${1:-word}
13 echo _$1 _${1-} _${1:-} _${1-word} _${1:-word}
16 echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
19 echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
22 echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
25 set -- "${1-}"; echo 1:$#
27 set -- ${1-}; echo 0:$#