hush/shell/msh_test/msh-bugs/shift.tests
Denis Vlasenko a43dba76ea msh: create testsuite (based on hush one)
hush: add TODO (doesn't know ":" command)
2008-03-02 19:57:53 +00:00

15 lines
183 B
Plaintext
Executable File

if test $# = 0; then
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