]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/more-exp.tests
Imported from ../bash-2.05.tar.gz.
[thirdparty/bash.git] / tests / more-exp.tests
index a562ae8d57f8880ded539f7b0d622b5baabb71ef..a2b7f77c56e5beddfaa50ab4988853b150c6e158 100644 (file)
@@ -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 "${@:-}"