diff options
author | Ron Yorston <rmy@pobox.com> | 2022-05-08 11:05:30 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-05-08 11:05:30 +0100 |
commit | 3194a475deb5e3e9e7aef680d9bf5fb0a63d551a (patch) | |
tree | 3f67439af8aca8b754d0a1c8146d5118b6bd83ae /win32/mingw.c | |
parent | dc6dbbd9601aeaa9f715b2ea8ec128e6b7846eb9 (diff) | |
download | busybox-w32-3194a475deb5e3e9e7aef680d9bf5fb0a63d551a.tar.gz busybox-w32-3194a475deb5e3e9e7aef680d9bf5fb0a63d551a.tar.bz2 busybox-w32-3194a475deb5e3e9e7aef680d9bf5fb0a63d551a.zip |
ash: export certain variables to the environment immediately
The environment variables BB_OVERRIDE_APPLETS, BB_SKIP_ANSI_EMULATION
and BB_SYSTEMROOT affect of the behaviour of the shell itself.
Setting them as shell variables is insufficient for them to affect
the current shell.
When these three variables are exported from the shell they are
now placed in the environment immediately. Conversely, when
they're unset or unexported they're removed from the environment.
Diffstat (limited to 'win32/mingw.c')
-rw-r--r-- | win32/mingw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index 5601d8428..6954ee9b5 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -1956,7 +1956,7 @@ const char *get_system_drive(void) | |||
1956 | } | 1956 | } |
1957 | } | 1957 | } |
1958 | 1958 | ||
1959 | return getenv("BB_SYSTEMROOT") ?: drive; | 1959 | return getenv(BB_SYSTEMROOT) ?: drive; |
1960 | } | 1960 | } |
1961 | 1961 | ||
1962 | /* Return pointer to system drive if path is of form '/file', else NULL */ | 1962 | /* Return pointer to system drive if path is of form '/file', else NULL */ |