From 13fc352af9a47da92ac0198c7a862c722f143508 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 8 Apr 2018 14:45:49 +0100 Subject: win32: more backslash to slash conversions Convert backslashes to slashes: - in the main program's argv[0] - in the shell's file argument Also, fix the code to remove the .exe extension from argv[0] in the main program. --- shell/ash.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index ba05f073f..5ec035043 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -14593,6 +14593,9 @@ procargs(char **argv) goto setarg0; } else if (!sflag) { setinputfile(*xargv, 0); +#if ENABLE_PLATFORM_MINGW32 + convert_slashes(*xargv); +#endif setarg0: arg0 = *xargv++; commandname = arg0; -- cgit v1.2.3-55-g6feb