Skip to content

Commit e80f57c

Browse files
committed
Merge pull request #11 from nalla/winstyle-cmdline-flags
path-conversion: Prevent conversion of commandline flags.
2 parents 833e388 + 3a68b5b commit e80f57c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

winsup/cygwin/msys2_path_conv.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,14 @@ path_type find_path_start_and_type(const char** src, int recurse, const char* en
342342
return NONE;
343343
}
344344

345+
/*
346+
* Skip path mangling when environment indicates it.
347+
*/
348+
const char *no_pathconv = getenv ("MSYS_NO_PATHCONV");
349+
350+
if (no_pathconv)
351+
goto skip_p2w;
352+
345353
/*
346354
* Prevent Git's :file.txt and :/message syntax from beeing modified.
347355
*/

0 commit comments

Comments
 (0)