Skip to content

Commit

Permalink
Merge branch '4605_ash_dash_env_init'
Browse files Browse the repository at this point in the history
Signed-off-by: Yury V. Zaytsev <[email protected]>
  • Loading branch information
zyv committed Jan 12, 2025
2 parents dbc92b8 + 8f9ddb2 commit 9fe4fb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/subshell/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9fe4fb8

Please sign in to comment.