help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep-find question (Is it a bug of GunWin32 version of "grep")


From: brianjiang
Subject: grep-find question (Is it a bug of GunWin32 version of "grep")
Date: Fri, 10 Aug 2007 17:23:32 +0800

I tried to use grep-find today (in windows XP). So I downgraded the
GunWin32 version grep and findutil. But it seems that the "-i"
(--ignore-case") doesn't work correctly.

When I didn't use "-i" option, searching succeeded:
=====================================
D:\WiKi>find . -type f -exec grep -nH RS17 {} ";"
./MyBase.muse:116: - RS17:

D:\WiKi>find . -type f -print0 | xargs -0 -e grep -nH RS17
./MyBase.muse:116: - RS17:


Then when I added the "-i" option, all the searching failed:
======================================-===
D:\WiKi>find . -type f -print0 | xargs -0 -e grep -nHi RS17

D:\WiKi>find . -type f -print0 | xargs -0 -e grep -nHi rs17

D:\WiKi>find . -type f -exec grep -nHi RS17 {} ";"

D:\WiKi>find . -type f -exec grep -nHi rs17 {} ";"


And I try the "mingw" version of these tools, the "-i" version works
well:
===================================================
Brian@BRIANJIANG /d/WiKi
$ find . -type f -exec grep -nHi rs17 {} NUL ";"
./MyBase.muse:116: - RS17:

Brian@BRIANJIANG /d/WiKi
$ find . -type f -print0 | xargs -0 -e grep -nHi rs17
./MyBase.muse:116: - RS17:


Is it a bug of GnuWin32 version of "grep" program?


Regards,
Brian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]