我有超越比較3安裝在;從命令行開始比較
"C:\Program Files\Beyond Compare 3\BCompare.exe"
和Cygwin;
"C:\Cygwin\bin\bash.exe"
我想要的是能夠使用一個命令,如;
diff <file1> <file2>
進入Cygwin外殼程序,並讓shell fork進程打開兩個文件進行比較。
我看着Beyond Compare Support Page但恐怕這對我來說太簡單了。我試圖逐字複製文本(除了路徑到可執行文件)無濟於事;
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
我是否應該取代cygpath?當我在命令行中輸入腳本的名稱時,出現'Command not found'錯誤。
[email protected] /cygdrive
$ "C:\Documents and Settings\gavina\Desktop\bc.sh"
bash: C:\Documents and Settings\gavina\Desktop\bc.sh: command not found
有沒有人有超越比較工作,因爲我已經描述過?這甚至可以在Windows環境中使用嗎?
在此先感謝!
在你的腳本,你可以回聲$第1 - > $ 9至看到你傳遞什麼? 還回顯你試圖運行的命令行,看看你正在嘗試執行,然後張貼。 – 2010-05-06 13:41:51