diff options
Diffstat (limited to 'tests/more-exp.tests')
-rw-r--r-- | tests/more-exp.tests | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/more-exp.tests b/tests/more-exp.tests index a562ae8d..a2b7f77c 100644 --- a/tests/more-exp.tests +++ b/tests/more-exp.tests @@ -481,4 +481,21 @@ set -- '' expect 1 echo $# expect '<>' +recho "${@}" +expect '<>' +recho "${@-}" +expect '<>' +recho "${@:-}" + +# this was a bug in bash-2.04, fixed in 2.05 +set -- a b +expect '<:a:>' '<:b:>' +for i in "${@-}"; do recho :$i:; done + +# I believe that ksh93 does these wrong -- we're using the rhs, so shouldn't +# it behave the same as ""? +set -- +expect '<>' +recho "${@-}" +expect '<>' recho "${@:-}" |