hush: make getch/peek functions directly called
[oweals/busybox.git] / shell / hush_test / hush-vars / param_expand_len.tests
index fe20a45e957bf55e2af66a2fdf6d3107cac8d99a..369c8d456a8316c131de4c99dd6590d08a039a66 100755 (executable)
@@ -15,3 +15,10 @@ unset e
 f=abc
 g=
 echo ${#e} ${#f} ${#g}
+
+set -- a
+# This must be interpreted as: $# ("1"), then remove trailing "1".
+# IOW: empty result.
+echo Nothing:${##1}
+echo Nothing:${#%1}
+echo One:${##x}