Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
# first try some invalid patterns (do in subshell due to parsing error)
# (set argv0 to "SHELL" to avoid "/path/to/shell: blah" in error messages)
-# valid in bash and ash (same as $-): "$THIS_SH" -c 'echo ${-}' SHELL
"$THIS_SH" -c 'echo ${:-}' SHELL
# now some funky ones
hush: syntax error: unterminated ${name}
-hush: syntax error: unterminated ${name}
_0 _0
_ _ _ _word _word
_aaaa _aaaa _aaaa _aaaa _aaaa
# first try some invalid patterns (do in subshell due to parsing error)
# (set argv0 to "SHELL" to avoid "/path/to/shell: blah" in error messages)
-# valid in bash and ash (same as $-), not supported in hush (yet?):
-"$THIS_SH" -c 'echo ${-}' SHELL
"$THIS_SH" -c 'echo ${:-}' SHELL
# now some funky ones