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

Re: *grep* buffer has no result with lgrep.exe



From: "T.Fukagawa" <tfukaga@xxxxxxxxx> さん曰く
Subject: Re: *grep* buffer has no result with lgrep.exe
Message-ID: <uelh56oy9.wl@xxxxxxxxxxxxxxxx>
Date: Thu, 25 Apr 2002 01:28:30 +0900

なるほど、lgrep かぁ、UTF-8 も引けるから jgrep から乗り換えよう、
と思い "lv4494" を入手して、Cygwin で make して使ってみました。
結果からいうと、grep に関係しそうなところは、

(setq shell-file-name "bash.exe") ;; bash じゃないと find が動かない
(setq shell-command-switch "-c")  ;; default じゃん

(setq grep-program "lgrep")
(setq grep-command (format "%s -i -n -Ks -Os " grep-program))
(setq grep-find-command (format "find . -type f -print0 | xargs -0 %s" grep-command))

程度で、ちゃんと引けました。

> (2) M-x grep で lgrep.exe -n を実行
> -------------------------------ここから-------------------------------
> cd d:/usr/home/toy/work/
> lgrep.exe -n -Ks -Os 2002 *.txt NUL
> 
> grep finished (matches found) at Thu Apr 25 00:43:56
> -------------------------------ここまで-------------------------------
> 
> (3) bash のコマンドラインから lgrep.exe -n を実行
> -------------------------------ここから-------------------------------
> CRUSOE:work[501]> lgrep.exe -n -Ks -Os 2002 *.txt
> tmp.txt:1:2002/03/19
> CRUSOE:work[502]> 
> -------------------------------ここまで-------------------------------

lv4494 の install 中に気付いたことなのですが、lgrep.exe が
lv.exe のリンクになっていませんか?

# Meadow-1.14 で動いていたというので全然違うかもしれないですけど、
# ぼくは、cp lv.exe lgrep.exe するように Makefile を変えました。

-- 
白井秀行@Meadow + slashdot with emacs-w3m 問題ともいう。