diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-23 17:52:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-23 17:52:56 +0200 |
commit | 98e823902cdca9c9a11c5ec3b399ddac8ebd935c (patch) | |
tree | c09a605dbc1c8e5f27eff0d145aea2d883b544a1 | |
parent | ef6f83f0b5a7ebb2ba8d8e3cc350bc57220761e5 (diff) |
Recognize lower-case drive letters when translating paths
-rwxr-xr-x | msvc-common | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/msvc-common b/msvc-common index b3969e8..be677d4 100755 --- a/msvc-common +++ b/msvc-common @@ -71,7 +71,7 @@ function msvc_exec () # <diag> <exe> <arg>... # First delimit paths that we need to translate with NUL characters. # - local s1="s#[A-Z]:[\\/]([^ ':][^':]*[\\/])*#\x00&\x00#g" + local s1="s#[A-Za-z]:[\\/]([^ ':][^':]*[\\/])*#\x00&\x00#g" # Next translate the paths (note the -z sed option). The last xargs call # does two things: it removes the newline added by realpath and adds the @@ -79,7 +79,7 @@ function msvc_exec () # <diag> <exe> <arg>... # # Substitution useful for debugging: #/bin/echo -n '&'# # - local s2="s#^[A-Z]:[\\/]([^ ':][^':]*[\\/])*#winepath -u0 '&' | \ + local s2="s#^[A-Za-z]:[\\/]([^ ':][^':]*[\\/])*#winepath -u0 '&' | \ xargs -0 realpath -z | xargs -0 -I{} /bin/echo -n {}/#e" # Finally, get rid of the NUL characters. While at it, also kill Windows |