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
index 17f2c9f3630bb9c0cd1684dd063b752953428018..53ef249f29404c5dea4e8938c0650421c52f0d63 100755 (executable)
@@ -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