aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc/shift.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-misc/shift.tests')
-rw-r--r--shell/hush_test/hush-misc/shift.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/shift.tests b/shell/hush_test/hush-misc/shift.tests
new file mode 100644
index 000000000..17f2c9f36
--- /dev/null
+++ b/shell/hush_test/hush-misc/shift.tests
@@ -0,0 +1,6 @@
+if test $# = 0; then
+ exec "$THIS_SH" $0 abc "d e"
+fi
+echo $0 $1 $2
+shift
+echo $0 $1 $2