From: Phil Susi <phillsusi@gmail.com>
To: git@vger.kernel.org
Subject: git difftool and proper path escaping on windows
Date: Fri, 08 May 2015 13:31:05 -0400 [thread overview]
Message-ID: <554CF2D9.3050608@gmail.com> (raw)
I'm trying to have git difftool run winmerge to compare files, but it
seems to be doing something silly with path translation. My first
attempt was:
git difftool -x /c/Program\ Files\ \(x86\)/WinMerge/WinMergeU.exe
To which it responded:
C:\Users\psusi\AppData\Local\Programs\Git/libexec/git-core\git-difftool--helper:
eval: line 61: syntax error near unexpected token `('
C:\Users\psusi\AppData\Local\Programs\Git/libexec/git-core\git-difftool--helper:
eval: line 61: `c:/Program Files (x86)/WinMerge/WinMergeU.exe "$LOCAL"
"$REMOTE
My first thought was that my shell removed the backslash escapes and
then git tried to pass the remaining command to another shell. So I
wrapped the path in single quotes, which should pass the escapes to git,
which should pass them to the shell, which should then be able to parse
the spaces in parenthesis in the path, but instead I got this:
Launch 'c:/Program/ Files/ /(x86/)/WinMerge/WinMergeU.exe'
So it appears that git is replacing backslashes with forward slashes,
then trying to pass that to the shell, which doesn't work. Any idea how
to fix or workaround this bug?
next reply other threads:[~2015-05-08 17:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-08 17:31 Phil Susi [this message]
2015-05-10 20:15 ` git difftool and proper path escaping on windows David Aguilar
2015-05-10 21:09 ` Philip Oakley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=554CF2D9.3050608@gmail.com \
--to=phillsusi@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).