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

Denys Vlasenko vda.linux at googlemail.com
Sun May 19 14:35:56 UTC 2019


commit: https://git.busybox.net/busybox/commit/?id=30a4c32a4d21728a7e25025f70fcc1d7cd722fe0
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 shell/ash_test/ash-vars/param_expand_default.tests   | 1 -
 shell/hush_test/hush-vars/param_expand_default.right | 1 -
 shell/hush_test/hush-vars/param_expand_default.tests | 2 --
 3 files changed, 4 deletions(-)

diff --git a/shell/ash_test/ash-vars/param_expand_default.tests b/shell/ash_test/ash-vars/param_expand_default.tests
index b5edfe1c5..dbd3e2218 100755
--- a/shell/ash_test/ash-vars/param_expand_default.tests
+++ b/shell/ash_test/ash-vars/param_expand_default.tests
@@ -1,6 +1,5 @@
 # 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
diff --git a/shell/hush_test/hush-vars/param_expand_default.right b/shell/hush_test/hush-vars/param_expand_default.right
index dbade3003..8bd0814b0 100644
--- a/shell/hush_test/hush-vars/param_expand_default.right
+++ b/shell/hush_test/hush-vars/param_expand_default.right
@@ -1,5 +1,4 @@
 hush: syntax error: unterminated ${name}
-hush: syntax error: unterminated ${name}
 _0 _0
 _ _ _ _word _word
 _aaaa _aaaa _aaaa _aaaa _aaaa
diff --git a/shell/hush_test/hush-vars/param_expand_default.tests b/shell/hush_test/hush-vars/param_expand_default.tests
index 754827ab3..dbd3e2218 100755
--- a/shell/hush_test/hush-vars/param_expand_default.tests
+++ b/shell/hush_test/hush-vars/param_expand_default.tests
@@ -1,7 +1,5 @@
 # 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


More information about the busybox-cvs mailing list