diff options
-rw-r--r-- | shell/ash.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c index d9ab3feb5..64a8dd318 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -15512,6 +15512,15 @@ exportcmd(int argc UNUSED_PARAM, char **argv) | |||
15512 | } | 15512 | } |
15513 | #endif | 15513 | #endif |
15514 | vp->flags = ((vp->flags | flag) & flag_off); | 15514 | vp->flags = ((vp->flags | flag) & flag_off); |
15515 | #if ENABLE_PLATFORM_MINGW32 | ||
15516 | /* Unexporting a variable imported from the | ||
15517 | * environment restores its original value and | ||
15518 | * removes the VIMPORT flag. */ | ||
15519 | if ((vp->flags & VIMPORT) && (flag_off == ~VEXPORT)) { | ||
15520 | vp->flags &= ~VIMPORT; | ||
15521 | p = getenv(name); | ||
15522 | } else | ||
15523 | #endif | ||
15515 | continue; | 15524 | continue; |
15516 | } | 15525 | } |
15517 | } | 15526 | } |