Web lists-archives.com

Re: grep 3.0-2 not stripping CRs on Windows

Am 17.12.2018 um 12:09 schrieb Ondřej Surý:

the grep package in version 3.0-2 fails to strip CR characters from the input, the reproducer is fairly simple:

$ echo -e 'foo\r\n' | grep -a 'foo$'

Perhaps the grep fails to detect it’s running on Windows because of cygwin emulates Linux so well? :)

Cygwin is a POSIX platform not a pure Windows one.
If you need to strip CR character, d2u of dos2unix package is the  tool.

PS: cygcheck.out should be attached to the mail not inline, as inline screw up any word search of the mailing list.


Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.

Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple