mirror of
https://git.busybox.net/busybox
synced 2025-05-10 04:33:59 +02:00
if sourced file "shift"ed argvs so that $1 is NULL, restore wasn't done. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 lines
149 B
Text
Executable file
12 lines
149 B
Text
Executable file
echo 'echo sourced_arg1:$1' >sourced1
|
|
echo 'shift' >>sourced1
|
|
|
|
set -- 1
|
|
. ./sourced1
|
|
echo arg1:$1
|
|
|
|
set -- 1
|
|
. ./sourced1 a
|
|
echo arg1:$1
|
|
|
|
rm sourced1
|