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.ex
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
2 matches
Mail list logo