[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

*grep* buffer has no result with lgrep.exe



深川です。

Meadow 1.15 を使ってます。

(setq grep-command "grep.exe -ni ") という設定で、M-x grep した場合、
*grep* のバッファに以下の結果が出力されます。
-------------------------------ここから-------------------------------
cd d:/usr/home/toy/
grep.exe -ni setq .emacs NUL
.emacs:9:;;(setq debug-on-error t)
.emacs:10:;;(setq debug-on-error nil)
.emacs:13:(setq explicit-shell-file-name "bash.exe")
.emacs:14:(setq shell-file-name "sh.exe")
.emacs:15:(setq shell-command-option "-c")		; for sh
.emacs:16:(setq shell-command-switch "-ic")
-------------------------------ここまで-------------------------------

(setq grep-command "lgrep.exe -n -Ks -Os ") という設定に変更した場合、
*grep* のバッファは下記のようになり、結果が出力されます。
-------------------------------ここから-------------------------------
cd d:/usr/home/toy/Mail/draft/
lgrep.exe -n -Ks -Os setq .emacs NUL

grep finished with no matches found at Tue Apr 23 00:40:01
-------------------------------ここまで-------------------------------

コマンドを bash から直に叩くと、下記の結果が出ます。
-------------------------------ここから-------------------------------
CRUSOE:toy[503]> lgrep.exe -n -Ks -Os "setq" .emacs
9:;;(setq debug-on-error t)
10:;;(setq debug-on-error nil)
13:(setq explicit-shell-file-name "bash.exe")
14:(setq shell-file-name "sh.exe")
15:(setq shell-command-option "-c")		; for sh
16:(setq shell-command-switch "-ic")
-------------------------------ここまで-------------------------------

lgrep.exe は Cygwin 環境で自分でコンパイルしたもので、Meadow 1.14 の時
は、検索結果は正しく出力されていたように記憶しています。grep.exe が動
いているので、lgrep.exe が期待された通りでないのだろうと思うのですが、
何か設定が必要なのでしょうか。

よろしくお願いします。
----
T.Fukagawa
tfukaga@xxxxxxxxx