Ticket UUID: | 8d073be8808beaa7b614b6d489e729dfb51ac114 | ||
Title: | diff/editor/gdiff settings don't support paths with spaces | ||
Status: | Fixed | Type: | Code_Defect |
Severity: | Important | Priority: | |
Subsystem: | Resolution: | Fixed | |
Last Modified: | 2009-09-14 19:50:27 | ||
Version Found In: | 713b8be852 | ||
Description & Comments: | |||
for the diff-command, gdiff-command, and editor settings, assigning a path with spaces causes failures when fossil attempts to launch the external tools. i even tried to assign the settings with quotes but they are (probably) stripped by the OS on the command line. this was observed using windows xp and powershell. RW PS C:\svn\rpw\Zyrain\Test> fossil setting gdiff-command "C:\Program Files\Beyond Compare 3\BComp.exe" PS C:\svn\rpw\Zyrain\Test> fossil settings autosync (local) 1 diff-command editor (local) C:\Program Files\JGsoft\EditPadPro6\EditPadPro.exe gdiff-command (local) C:\Program Files\Beyond Compare 3\BComp.exe http-port localauth (local) 0 clearsign (local) off pgp-command mtime-changes proxy web-browser PS C:\svn\rpw\Zyrain\Test> fossil gdiff sct.txt 'C:\Program' is not recognized as an internal or external command, operable program or batch file. PS C:\svn\rpw\Zyrain\Test> fossil ver This is fossil version 713b8be852 2009-08-28 22:59:27 UTC drh added on 2009-09-10 23:01:15: anonymous added on 2009-09-11 01:32:34: "C:\Program Files\Beyond Compare 3\BComp.exe file1.cpp file2.cpp"the above would still result in the OS thinking that C:\Program was the command you were executing and Files\Beyond etc. is a space delimited parameter list. for commands with spaces in them, you need to quote the command and then quote any parameters with spaces in them. to be safe, you can just quote all parameters separately, so what you want is one of these: "C:\Program Files\Beyond Compare 3\BComp.exe" file1.cpp file2.cpp "C:\Program Files\Beyond Compare 3\BComp.exe" "file1.cpp" "file2.cpp" anonymous claiming to be alison.rowland@filollc.com added on 2009-09-14 18:40:57: drh added on 2009-09-14 19:50:27: C:\Program Files\WinMerge\WinMergeU.exe And then I run "gdiff" from both a cygwin shell and a regular DOS box and it works great in both cases. |