public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: grep 3.0-2 not stripping CRs on Windows
Date: Mon, 17 Dec 2018 11:41:00 -0000	[thread overview]
Message-ID: <c061bb62-74bf-4025-4368-ee033a7390ef@gmail.com> (raw)
In-Reply-To: <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

  reply	other threads:[~2018-12-17 11:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-17 11:10 Ondřej Surý
2018-12-17 11:41 ` Marco Atzeri [this message]
2018-12-17 23:37 ` Andrey Repin
2018-12-17 11:55 Ondřej Surý
2018-12-17 12:04 ` Soegtrop, Michael
2018-12-17 12:22   ` Ondřej Surý
2018-12-17 12:51     ` Soegtrop, Michael
2018-12-17 13:05     ` Steven Penny
2018-12-17 15:38       ` cyg Simple
2018-12-17 12:09 ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c061bb62-74bf-4025-4368-ee033a7390ef@gmail.com \
    --to=marco.atzeri@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).