projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
diff --git
a/shell/hush_test/hush-misc/shift.tests
b/shell/hush_test/hush-misc/shift.tests
old mode 100644
(file)
new mode 100755
(executable)
index
17f2c9f
..
53ef249
--- 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