projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hush: fix misparsing of "... do eval a= ...". Closes 3721
[oweals/busybox.git]
/
shell
/
hush_test
/
hush-misc
/
shift.tests
diff --git
a/shell/hush_test/hush-misc/shift.tests
b/shell/hush_test/hush-misc/shift.tests
index 17f2c9f3630bb9c0cd1684dd063b752953428018..53ef249f29404c5dea4e8938c0650421c52f0d63 100755
(executable)
--- 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