From 98e823902cdca9c9a11c5ec3b399ddac8ebd935c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 23 Jun 2016 17:52:56 +0200 Subject: Recognize lower-case drive letters when translating paths --- msvc-common | 4 ++-- 1 file 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 () # ... # 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 () # ... # # 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 -- cgit v1.1