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