summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-misc/shift.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-misc/shift.tests')
-rwxr-xr-xshell/hush_test/hush-misc/shift.tests10
1 files changed, 9 insertions, 1 deletions
diff --git a/shell/hush_test/hush-misc/shift.tests b/shell/hush_test/hush-misc/shift.tests
index 17f2c9f36..53ef249f2 100755
--- a/shell/hush_test/hush-misc/shift.tests
+++ b/shell/hush_test/hush-misc/shift.tests
@@ -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