Menu

#3005 Accepting command lines with quotes in the middle

2.16.0
open
nobody
5
2013-02-28
2011-04-15
No

When calling Winmerge from Far Manager (open source file manager), we can create such command lines:
winmerge "E:\!Work\""!file1.ini" "C:\Program Files\MyProg\""!file1.ini"
Such command line is created when we press "Ctrl-[","Ctrl-Enter", Tab, "Ctrl-]", "Ctrl-Enter" ("Ctrl-[" moves to command line the left panel file path, "Ctrl-]" moves to command line the right panel file path, "Ctrl-Enter" moves to command line the active panel file name (with extension) ) and file path and/or file name contains spaces or other special chars.
So, there will be quotes in the middle of strings. Now Winmerge cannot accept such command lines. At the same time standard windows programs (such as FC) accept such command lines.
My patch removes such quotes allowing Winmerge accept such command lines
This patch is for lates version from repository ("trunc", revision 7520)

Discussion

  • Konstantin Rudenko

    patch for Src/MergeCmdLineInfo.cpp

     
  • Christian List

    Christian List - 2013-02-28
    • milestone: Trunk --> 2.16.0
     
  • Christian List

    Christian List - 2013-02-28

    This seems like a very special case.
    But since quotes are anyways illegal in file names, then this patch should be fine to include.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.