Bug in grep.exe
Nicholas Hawthorn <[email protected]> Sat, 26 Aug 2017 12:03:58 +1200
| Newsgroups | gmane.comp.gnu.utils.bugs |
|---|---|
| Message-ID | <CAGegeDjXFwae04ckWBz1m2x_HP=zq1gH8-8Xsyk05+UPXk21Aw@mail.gmail.com> |
Say we make a one line text file called "a" that contains
w CR LF
and then give the command:
grep -v "<" < a > b
File "b" will consist of:
w LF
In effect, grep has removed the CR. The bug was first found in a 66 line
.bat file where it was a bit of a nuisance.
For what it's worth grep.exe on my system is 80412 bytes and is dated 23
Jan 2014.
Best wishes,
Nick Hawthorn