summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-misc/source_argv_and_shift.tests
blob: 66353f3d776fa13a5b4f44c576f5b585147abc93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
echo 'echo sourced_arg1:$1' >sourced1
echo 'shift' >>sourced1

set -- 1
. ./sourced1
echo arg1:$1

set -- 1
. ./sourced1 a
echo arg1:$1

rm sourced1