ash: fix nofork bug where environment is not properly passed to a command
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 3 Nov 2017 13:16:25 +0000 (14:16 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 3 Nov 2017 13:16:25 +0000 (14:16 +0100)
commita5060b8364faa7c677c8950f1315c451403b0660
treef62638268fb4edd79cd1a062d63092df1a5b4513
parentf5e8b4278822f2413bf7e47466f55cc1a0fcca9a
ash: fix nofork bug where environment is not properly passed to a command

function                                             old     new   delta
listvars                                             144     252    +108
evalcommand                                         1500    1546     +46
showvars                                             142     147      +5
shellexec                                            242     245      +3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 162/0)             Total: 162 bytes

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