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 # valid in bash and ash (same as $-), not supported in hush (yet?):
4 "$THIS_SH" -c 'echo ${-}' SHELL
5 "$THIS_SH" -c 'echo ${:-}' SHELL
12 echo _$1 _${1-} _${1:-} _${1-word} _${1:-word}
15 echo _$1 _${1-} _${1:-} _${1-word} _${1:-word}
18 echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
21 echo _$f _${f-} _${f:-} _${f-word} _${f:-word}
24 echo _$f _${f-} _${f:-} _${f-word} _${f:-word}