busybox/shell/ash_test/ash-misc/source5.tests
Denys Vlasenko c7a774dde4 sh testsuite: sync ash-misc/source* and hush-misc/source*
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-10-02 18:23:14 +02:00

9 lines
183 B
Plaintext
Executable File

echo 'echo "0:$0 1:$1 2:$2"' >sourced1
set -- 1 2 3
"$THIS_SH" -c '. ./sourced1' arg0 arg1 arg2
echo Ok1:$?
"$THIS_SH" -c '. ./sourced1 q w e' arg0 arg1 arg2
echo Ok2:$?
rm sourced1