mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +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");
|
init_file = g_strdup (".profile");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Put init file to ENV variable used by ash */
|
/* Put init file to ENV variable used by ash but only if it
|
||||||
g_setenv ("ENV", init_file, TRUE);
|
is not already set. */
|
||||||
|
g_setenv ("ENV", init_file, FALSE);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user