ash: [VAR] Do not poplocalvars prematurely on regular utilities
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 26 Jul 2017 18:00:08 +0000 (20:00 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 26 Jul 2017 18:33:51 +0000 (20:33 +0200)
commit85241c7b0b4558f405f7e633ad62520299b8396d
tree2193a2a3df5a0a26c8bc0f74d6a0796628d82573
parent484fc2056df8a82acabc70386eeb6d0da4982fec
ash: [VAR] Do not poplocalvars prematurely on regular utilities

Upstream commit:

    Date: Thu, 27 May 2010 11:50:19 +0800
    [VAR] Do not poplocalvars prematurely on regular utilities

    The recent cmdenviron removal broke regular utilities by calling
    poplocalvars too early.  This patch fixes that by postponing the
    poplocalvars for regular utilities until they have completed.

    In order to ensure that local still works, it is now a special
    built-in.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c