From d5891f95ce623434e9b479e1da6f10213d3ecd76 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 16 Feb 2012 10:45:12 +0000 Subject: [PATCH] Replace backslash with forward slash in environment --- shell/ash.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shell/ash.c b/shell/ash.c index 1061e55c26..fedf86002a 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -13425,6 +13425,13 @@ init(void) } #endif for (envp = environ; envp && *envp; envp++) { +#if ENABLE_PLATFORM_MINGW32 + char *s; + + while ((s=strchr(*envp, '\\'))) { + *s = '/'; + } +#endif if (strchr(*envp, '=')) { setvareq(*envp, VEXPORT|VTEXTFIXED); }