Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > gnu.utils.bug > #2216

Bug in grep.exe

From Nicholas Hawthorn <nickhawthorn2@gmail.com>
Newsgroups gnu.utils.bug
Subject Bug in grep.exe
Date 2017-08-26 12:03 +1200
Message-ID <mailman.13822.1503725826.21957.bug-gnu-utils@gnu.org> (permalink)

Show all headers | View raw


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

Back to gnu.utils.bug | Previous | Next | Find similar


Thread

Bug in grep.exe Nicholas Hawthorn <nickhawthorn2@gmail.com> - 2017-08-26 12:03 +1200

csiph-web