Starting Beyond Compare from the Command Line

Posted by Logan on Stack Overflow See other posts from Stack Overflow or by Logan
Published on 2010-05-06T13:37:51Z Indexed on 2010/05/06 14:18 UTC
Read the original article Hit count: 256

Filed under:
|

I have Beyond Compare 3 installed at;

"C:\Program Files\Beyond Compare 3\BCompare.exe"

and Cygwin;

"C:\Cygwin\bin\bash.exe"

What I would like is to be able to use a command such as;

diff <file1> <file2>

into the Cygwin shell and to have the shell fork a process opening the two files in beyond compare.

I looked at the Beyond Compare Support Page but I'm afraid It was too brief for me. I tried copying the text verbatim (apart from path to executable) to no avail;

Instead of using a batch file, create a file named "bc.sh" with the following line:
"$(cygpath 'C:\Progra~1\Beyond~1\bcomp.exe')" `cygpath -w "$6"` `cygpath -w "$7"` /title1="$3" /title2="$5" /readonly 

Was I supposed to replace cygpath? I get a 'Command not found' error when I enter the name of the script on the command line.

gavina@whwgavina1 /cygdrive
$ "C:\Documents and Settings\gavina\Desktop\bc.sh"
bash: C:\Documents and Settings\gavina\Desktop\bc.sh: command not found

Does anyone have Beyond Compare working as I have described? Is this even possible in a Windows environment?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about cygwin

Related posts about beyondcompare