public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: L A Walsh <cygwin@tlinx.org>
To: Brian.Inglis@SystematicSw.ab.ca, "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: sed end of line
Date: Sat, 16 Mar 2019 14:49:00 -0000	[thread overview]
Message-ID: <5C8D0CE4.3080004@tlinx.org> (raw)
In-Reply-To: <110d06cf-8ce6-fd10-ec68-8be0f9b87959@SystematicSw.ab.ca>

On 3/15/2019 7:59 PM, Brian Inglis wrote:
> On 2019-03-15 04:03, Soegtrop, Michael wrote:
>   
>> you are mixing a DOS echo which will produce a \r\n line ending with a
>> Cygwin sed which expects \n line endings. The second . matches the \r.
>> Either work in bash and use Cygwin echo or use a MinGW compile of sed or
>> strip the \r e.g. with tr or maybe match it more explicitly with a \r.
>>     
>
> Or use Cygwin printf "%s\n" "Hey" to avoid differing echo output.
>   
Or when in cygwin, make sure your cygwin paths are first.



--
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:[~2019-03-16 14:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-15  9:51 Timo Maier
2019-03-15 10:02 ` Vlado
2019-03-15 10:03 ` Soegtrop, Michael
2019-03-15 10:33   ` Timo Maier
2019-03-16  2:59   ` Brian Inglis
2019-03-16 14:49     ` L A Walsh [this message]

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=5C8D0CE4.3080004@tlinx.org \
    --to=cygwin@tlinx.org \
    --cc=Brian.Inglis@SystematicSw.ab.ca \
    --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).