This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: grep 3.0-2 not stripping CRs on Windows
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 17 Dec 2018 12:41:25 +0100
- Subject: Re: grep 3.0-2 not stripping CRs on Windows
- References: <B18A59DC-C4E8-4833-A619-B7A3367F40D2@isc.org>
Am 17.12.2018 um 12:09 schrieb Ondřej Surý:
Hi,
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.
Regards
Marco
---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus
--
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