hush: fix a bug in argv restoration after sourcing a file
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 9 Jan 2017 07:13:21 +0000 (08:13 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 9 Jan 2017 07:13:21 +0000 (08:13 +0100)
commit2b1559056cf32c42675ecd937796e1455bcb5c2c
tree6dc78577d23802be73dbb03990e5352c1d4fa323
parent4e4f88e569e6e32669c856a86c60bb3fc104d588
hush: fix a bug in argv restoration after sourcing a file

if sourced file "shift"ed argvs so that $1 is NULL, restore wasn't done.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-misc/source_argv_and_shift.right [new file with mode: 0644]
shell/ash_test/ash-misc/source_argv_and_shift.tests [new file with mode: 0755]
shell/hush.c
shell/hush_test/hush-misc/source_argv_and_shift.right [new file with mode: 0644]
shell/hush_test/hush-misc/source_argv_and_shift.tests [new file with mode: 0755]