ash: fix a bug in argv restoration after sourcing a file
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 9 Jan 2017 07:22:06 +0000 (08:22 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 9 Jan 2017 07:22:06 +0000 (08:22 +0100)
commitfb87d93d1e0a6760049fa88aadd1232b7e1545e7
tree775402433f86553d91e78d0ef8ee9f0b0bee0bed
parent2b1559056cf32c42675ecd937796e1455bcb5c2c
ash: 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.c