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

15 lines
183 B
Plaintext
Raw Normal View History

2007-05-20 22:22:18 +00:00
if test $# = 0; then
2007-05-24 13:22:01 +00:00
exec "$THIS_SH" $0 abc "d e" 123
2007-05-20 22:22:18 +00:00
fi
echo $0 $1 $2
shift
echo $0 $1 $2
2007-05-24 13:22:01 +00:00
shift 999
echo $0 $1 $2
shift 2
echo $0 $1 $2
shift 2
echo $0 $1 $2
shift
echo $0 $1 $2