From: <brianjiang@gdnt.com.cn>
To: <help-gnu-emacs@gnu.org>
Subject: grep-find question (Is it a bug of GunWin32 version of "grep")
Date: Fri, 10 Aug 2007 17:23:32 +0800 [thread overview]
Message-ID: <63F95800EDD046419F17688AAFD41CCF01C57033@rnd-ex01.rnd.gdnt.local> (raw)
In-Reply-To: <87myx06j88.fsf@lion.rapttech.com.au>
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
next prev parent reply other threads:[~2007-08-10 9:23 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-03 19:24 Emacspeak and UTF-8 -- possible? cmr.Pent
2007-08-07 10:41 ` Tim X
2007-08-08 9:09 ` cmr.Pent
2007-08-08 14:56 ` Stefan Monnier
2007-08-08 23:44 ` Robert D. Crawford
2007-08-09 17:44 ` Stefan Monnier
2007-08-10 7:40 ` Tim X
2007-08-10 5:39 ` Tim X
2007-08-10 9:23 ` brianjiang [this message]
2007-08-10 14:07 ` grep-find question (Is it a bug of GunWin32 version of "grep") Eli Zaretskii
2007-08-11 5:55 ` brianjiang
2007-08-11 7:06 ` brianjiang
2007-08-11 10:06 ` Eli Zaretskii
2007-08-12 9:58 ` brianjiang
2007-08-12 18:59 ` Eli Zaretskii
2007-08-10 5:27 ` Emacspeak and UTF-8 -- possible? Tim X
2007-08-11 4:02 ` Stefan Monnier
2007-08-13 21:47 ` Raman
2007-08-14 18:28 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=63F95800EDD046419F17688AAFD41CCF01C57033@rnd-ex01.rnd.gdnt.local \
--to=brianjiang@gdnt.com.cn \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.