hush/shell/hush_test/hush-misc/source2.tests
Denys Vlasenko 88b532d59a hush: source builtin should override $N only if it has args
function                                             old     new   delta
builtin_source                                       174     184     +10

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-03-17 14:11:04 +01: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