Re: Usage of Cygwin GNU grep missing files when using wild cards.
Eli Zaretskii <[email protected]>
| Newsgroups | gmane.comp.gnu.utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
> Date: Thu, 25 Sep 2014 10:11:55 -0700 > From: Steven Bender <[email protected]> > > Apparently the command grep -i PATN *.* will scan files and indicate special results for .EXE files, > and it will locate files of extension .BAT with the wildcard usage, but when I subset the search > by using grep -i PATN *.BAT to look for patn in just batch text files, it finds no matches. > By copying files (copy *.bat *.qqq) and making new copies, I can then use > grep -i PATN *.qqq and get the expected results. Could it be that the files are called *.bat (lowercase) and not *.BAT (uppercase), and that the Cygwin grep is case-sensitive about file names? > It appears to treat the .BAT text file contents specially. I'd be very surprised if it did that.