busybox/shell/hush_test/hush-misc/shift.tests

15 lines
183 B
Plaintext
Raw Normal View History

2007-05-21 03:52:18 +05:30
if test $# = 0; then
2007-05-24 18:52:01 +05:30
exec "$THIS_SH" $0 abc "d e" 123
2007-05-21 03:52:18 +05:30
fi
echo $0 $1 $2
shift
echo $0 $1 $2
2007-05-24 18:52:01 +05:30
shift 999
echo $0 $1 $2
shift 2
echo $0 $1 $2
shift 2
echo $0 $1 $2
shift
echo $0 $1 $2