This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: grep 3.0-2 not stripping CRs on Windows


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]