aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 6d24fb55a..2a1ddac39 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -14975,6 +14975,13 @@ reinitvar(void)
14975 varinit[i].var_func = varinit_data[i].var_func; 14975 varinit[i].var_func = varinit_data[i].var_func;
14976 } 14976 }
14977 vlineno.var_text = linenovar; 14977 vlineno.var_text = linenovar;
14978
14979 /*
14980 * BB_APPLET_<pid> was correct when 'sh --forkshell' was started
14981 * but has now been overwritten by the environment from the forkshell
14982 * data block. Reinstate it.
14983 */
14984 setvareq(bb_applet_pid(), VEXPORT);
14978} 14985}
14979 14986
14980/* FIXME: should consider running forkparent() and forkchild() */ 14987/* FIXME: should consider running forkparent() and forkchild() */