From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: RE: grep-find question (Is it a bug of GunWin32 version of "grep") Date: Sun, 12 Aug 2007 17:58:48 +0800 Message-ID: <63F95800EDD046419F17688AAFD41CCF01C57118@rnd-ex01.rnd.gdnt.local> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1186912896 25895 80.91.229.12 (12 Aug 2007 10:01:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2007 10:01:36 +0000 (UTC) To: , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 12 12:01:33 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IKAGK-0008Gc-Rd for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Aug 2007 12:01:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKAGK-0000oZ-A4 for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Aug 2007 06:01:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IKAFp-0000gj-7Y for help-gnu-emacs@gnu.org; Sun, 12 Aug 2007 06:01:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IKAFn-0000fs-Qx for help-gnu-emacs@gnu.org; Sun, 12 Aug 2007 06:01:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKAFn-0000fm-Kn for help-gnu-emacs@gnu.org; Sun, 12 Aug 2007 06:00:59 -0400 Original-Received: from [202.104.30.38] (helo=email.gdnt.com.cn) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IKAFg-0006i8-DI; Sun, 12 Aug 2007 06:00:53 -0400 Original-Received: from sd-ef-01.cnshn.gdnt.local ([202.38.41.132]) by email.gdnt.com.cn with Microsoft SMTPSVC(6.0.3790.1830); Sun, 12 Aug 2007 18:02:49 +0800 Original-Received: from sd-ex-01.cnshn.gdnt.local ([202.38.38.8]) by sd-ef-01.cnshn.gdnt.local with Microsoft SMTPSVC(6.0.3790.1830); Sun, 12 Aug 2007 05:02:42 -0500 Original-Received: from rnd-ex01.rnd.gdnt.local ([202.38.32.250]) by sd-ex-01.cnshn.gdnt.local with Microsoft SMTPSVC(6.0.3790.1830); Sun, 12 Aug 2007 18:02:41 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: grep-find question (Is it a bug of GunWin32 version of "grep") Thread-Index: Acfb/7bCasYfFP9cTrGyqtmEfFGUywAxWitQ X-OriginalArrivalTime: 12 Aug 2007 10:02:41.0896 (UTC) FILETIME=[EBF9AE80:01C7DCC7] X-TM-AS-Product-Ver: SMEX-7.0.0.1345-3.6.1039-15232.002 X-TM-AS-Result: No--22.342100-8.000000-31 X-Detected-Kernel: Windows 2000 SP4, XP SP1+ X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46508 Archived-At: =20 Hi Eli, Where did you download the package? I downgraded it from http://gnuwin32.sourceforge.net/packages/grep.htm. I have uninstall and re-install it, but the problem still exists. And I also try the ZIP package, the result is the same. And I cannot find pcre.dll in these packages. Only pcre3.dll there. My pcre3.dll is shipped with SETUP package and ZIP package. The timestamp is as follows: ------------------------------------------------------- Directory of C:\Program Files\GnuWin32\bin 2007-08-12 17:41 . 2007-08-12 17:41 .. 2007-04-03 03:40 33 egrep 2007-04-03 03:40 33 fgrep 2005-04-19 02:53 160,256 find.exe 2007-06-23 03:35 122,368 grep.exe 2004-03-17 04:37 898,048 libiconv2.dll 2005-05-07 03:52 103,424 libintl3.dll 2005-04-19 02:53 113,664 locate.exe 2007-03-17 17:56 140,288 pcre3.dll 2006-10-10 13:48 30 rgrep 2005-03-18 06:38 8,228 updatedb 2005-05-01 17:13 61,440 which.exe 2005-04-19 02:53 32,768 xargs.exe 12 File(s) 1,640,580 bytes 2 Dir(s) 2,093,121,536 bytes free > Yes, I've tried that, and it works as I expect: it finds text > case-insensitively no matter if I specify the search string in > uppercase or lowercase. Actually, I mean it has problem when the text string in the file is uppercase. In my example, I have a text string "RS17" in file "MyBase.muse". When I use "-i rs17" or "-i RS17" to search, I cannot find "RS17" in that file. But I also have another text string "rs17" in file "MyBase.muse", and I use "-i rs17" or "-i RS17" and I can find it ("rs17" in the file) successfully. Very strange. Regards, Brian -----Original Message----- From: help-gnu-emacs-bounces+brianjiang=3Dgdnt.com.cn@gnu.org = [mailto:help-gnu-emacs-bounces+brianjiang=3Dgdnt.com.cn@gnu.org] On = Behalf Of Eli Zaretskii Sent: 2007=C4=EA8=D4=C211=C8=D5 18:06 To: help-gnu-emacs@gnu.org Subject: Re: grep-find question (Is it a bug of GunWin32 version of = "grep") > Date: Sat, 11 Aug 2007 13:55:17 +0800 > From: >=20 > And I cannot find the pcre.dll in my computer. Instead, I find = pcre3.dll (installed by GnuWin32): > ---------------------------------------------------------------------- > ----------------------------- > D:\WiKi>which pcre3.dll > C:/Program Files/GnuWin32/bin/pcre3.dll Strange. I installed Grep from a zip file, not with a self-installing = setup program, and I clearly see only pcre.dll in the = grep-2.5.1a-dep.zip archive I still have on my machine. What is the time stamp of pcre3.dll on your system? Also, does it help to reinstall Grep? > And I found if when text in the file is lowcase, e.g., "rs17", then I = can use "-i" option to find it successfully. e.g., "-i RS17". > But if the text in the file is uppercase, e.g., "RS17", then neither = "-i rs17" nor "-i RS17" can found it :( See below:=20 > (Have you tried that?) Yes, I've tried that, and it works as I expect: it finds text = case-insensitively no matter if I specify the search string in uppercase = or lowercase. > I currently use the MSYS version for my Emacs and it works well. FWIW, I don't recommend this. MSYS ports are meant for one purpose only: to be able to build MinGW ports of other tools. For that purpose, = they sometimes tweak the command-line arguments in order to allow = running those commands from Unix shell scripts. In particular, they = convert Windows file names with drive letters into pseudo-Posix file = names that start with a forward slash. If a command-line argument looks = like a file name, but really isn't, this conversion could have = devastating effect on the Grep command. _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs