CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

Dan Kegel dank@kegel.com
Fri Jun 9 15:50:00 GMT 2017


On Fri, Jun 9, 2017 at 8:31 AM, Andrey Repin <anrdaemon@yandex.ru> wrote:
> Greetings, Soegtrop, Michael!
>
>>> alias sed='sed -b -e '\''s/\r$//'\'''
>
>> thanks, an interesting idea! Putting this into something like .bashrc might
>> have a similar effect as having a special sed build with CR stripping built in.
>
> Except it may not work in makefiles, since make calls sed directly.

One could try making a wrapper shell script where sed usually lives
that adds those options and calls the real sed...

--
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



More information about the Cygwin mailing list