This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.5.12: find with -iregex is case-sensitive
- From: johnwrussell at comcast dot net
- To: cygwin at cygwin dot com
- Date: Sun, 23 Jan 2005 23:09:28 +0000
- Subject: Re: 1.5.12: find with -iregex is case-sensitive
I found a workaround: Remake findutils 4.1.7-4 from source, and use /usr/local/bin/find.exe instead of /usr/bin/find.exe.
Here's what I did:
$ cd /usr/src/findutils-4.1.7-4
$ ./configure
$ make
$ make install
$ mv /usr/bin/find.exe /usr/bin/find.exe.old
$ cd /bin
$ ln -s /usr/local/bin/find.exe
Now the test procedure gives correct case-insensitive results:
$ find test -iregex ".*file.*"
test/file-a
test/File-b
> Even with the -iregex option, the find command performs case-sensitive
> matching.
>
> Test procedure:
>
> $ mkdir test
> $ touch test/file-a
> $ touch test/File-b
> $ find test | grep -i ".*file.*"
> test/file-a
> test/File-b
>
> $ find test -iregex ".*file.*"
> test/file-a
>
> $ find test -iregex ".*File.*"
> test/File-b
>
> I'm using Cygwin 1.5.12-1 under Windows XP Professional Ver 5.1 Build 2600
> Service Pack 1, findutils 20041227-1.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/