[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: grep-find question (Is it a bug of GunWin32 version of "grep")
From: |
brianjiang |
Subject: |
RE: grep-find question (Is it a bug of GunWin32 version of "grep") |
Date: |
Sun, 12 Aug 2007 17:58:48 +0800 |
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
- Re: Emacspeak and UTF-8 -- possible?, (continued)
- Re: Emacspeak and UTF-8 -- possible?, Stefan Monnier, 2007/08/08
- Re: Emacspeak and UTF-8 -- possible?, Tim X, 2007/08/10
- grep-find question (Is it a bug of GunWin32 version of "grep"), brianjiang, 2007/08/10
- Re: grep-find question (Is it a bug of GunWin32 version of "grep"), Eli Zaretskii, 2007/08/10
- RE: grep-find question (Is it a bug of GunWin32 version of "grep"), brianjiang, 2007/08/11
- RE: grep-find question (Is it a bug of GunWin32 version of "grep"), brianjiang, 2007/08/11
- Re: grep-find question (Is it a bug of GunWin32 version of "grep"), Eli Zaretskii, 2007/08/11
- RE: grep-find question (Is it a bug of GunWin32 version of "grep"),
brianjiang <=
- Re: grep-find question (Is it a bug of GunWin32 version of "grep"), Eli Zaretskii, 2007/08/12
- Re: Emacspeak and UTF-8 -- possible?, Tim X, 2007/08/10
- Re: Emacspeak and UTF-8 -- possible?, Stefan Monnier, 2007/08/11
- Re: Emacspeak and UTF-8 -- possible?, Raman, 2007/08/14
- Re: Emacspeak and UTF-8 -- possible?, Stefan Monnier, 2007/08/14