busybox/shell/ash_test/ash-misc/source_argv_and_shift.tests

13 lines
149 B
Plaintext
Raw Normal View History

echo 'echo sourced_arg1:$1' >sourced1
echo 'shift' >>sourced1
set -- 1
. ./sourced1
echo arg1:$1
set -- 1
. ./sourced1 a
echo arg1:$1
rm sourced1