Do not override ENV variable for ash/dash subshell

This commit is contained in:
d3m3t3r 2024-11-07 14:15:29 +00:00
parent c5b8b69371
commit 337dad9fa3

View File

@ -360,8 +360,9 @@ init_subshell_child (const char *pty_name)
init_file = g_strdup (".profile");
}
/* Put init file to ENV variable used by ash */
g_setenv ("ENV", init_file, TRUE);
/* Put init file to ENV variable used by ash but only if it
is not already set. */
g_setenv ("ENV", init_file, FALSE);
break;