hush: remove test for "echo ${-}" errorring out - now it works

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2019-05-19 16:35:56 +02:00
parent ef8985c688
commit 30a4c32a4d
3 changed files with 0 additions and 4 deletions

View File

@ -1,6 +1,5 @@
# first try some invalid patterns (do in subshell due to parsing error) # 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) # (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 "$THIS_SH" -c 'echo ${:-}' SHELL
# now some funky ones # now some funky ones

View File

@ -1,5 +1,4 @@
hush: syntax error: unterminated ${name} hush: syntax error: unterminated ${name}
hush: syntax error: unterminated ${name}
_0 _0 _0 _0
_ _ _ _word _word _ _ _ _word _word
_aaaa _aaaa _aaaa _aaaa _aaaa _aaaa _aaaa _aaaa _aaaa _aaaa

View File

@ -1,7 +1,5 @@
# first try some invalid patterns (do in subshell due to parsing error) # 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) # (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 "$THIS_SH" -c 'echo ${:-}' SHELL
# now some funky ones # now some funky ones