From: <brianjiang@gdnt.com.cn>
To: <eliz@gnu.org>, <help-gnu-emacs@gnu.org>
Subject: RE: grep-find question (Is it a bug of GunWin32 version of "grep")
Date: Sun, 12 Aug 2007 17:58:48 +0800 [thread overview]
Message-ID: <63F95800EDD046419F17688AAFD41CCF01C57118@rnd-ex01.rnd.gdnt.local> (raw)
In-Reply-To: <ur6mae66z.fsf@gnu.org>
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 <DIR> .
2007-08-12 17:41 <DIR> ..
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=gdnt.com.cn@gnu.org [mailto:help-gnu-emacs-bounces+brianjiang=gdnt.com.cn@gnu.org] On Behalf Of Eli Zaretskii
Sent: 2007年8月11日 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: <brianjiang@gdnt.com.cn>
>
> 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:
> (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
next prev parent reply other threads:[~2007-08-12 9:58 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 ` grep-find question (Is it a bug of GunWin32 version of "grep") brianjiang
2007-08-10 14:07 ` 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 [this message]
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=63F95800EDD046419F17688AAFD41CCF01C57118@rnd-ex01.rnd.gdnt.local \
--to=brianjiang@gdnt.com.cn \
--cc=eliz@gnu.org \
--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.