bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in grep.exe


From: Nicholas Hawthorn
Subject: Bug in grep.exe
Date: Sat, 26 Aug 2017 12:03:58 +1200

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]