add a pathological test case for here doc related to eof marker and other ugly corner...
[oweals/busybox.git] / shell / hush_test / hush-misc / shift.tests
old mode 100644 (file)
new mode 100755 (executable)
index 17f2c9f..53ef249
@@ -1,6 +1,14 @@
 if test $# = 0; then
-    exec "$THIS_SH" $0 abc "d e"
+    exec "$THIS_SH" $0 abc "d e" 123
 fi
 echo $0 $1 $2
 shift
 echo $0 $1 $2
+shift 999
+echo $0 $1 $2
+shift 2
+echo $0 $1 $2
+shift 2
+echo $0 $1 $2
+shift
+echo $0 $1 $2