mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +03:00
Do not override ENV variable for ash/dash subshell
This commit is contained in:
parent
c5b8b69371
commit
337dad9fa3
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user