This is the mail archive of the
mailing list for the Cygwin project.
Re: sed strips CRs
On Feb 10 14:44, Earnie Boyd wrote:
> On Fri, Feb 10, 2012 at 10:07 AM, Corinna Vinschen wrote:
> > On Feb 10 08:02, Nellis, Kenneth wrote:
> >> Cygwin 'sed' seems to be stripping CRs from its input.
> >> Linux sed doesn't do this. Example:
> > Try the -b option.
> By this I assume you to mean that the -b option opens the input file
> in binary mode. But the mount table the OP showed was already in
> binary mode. Does sed not take that into consideration, I.E. it
> specifies the mode as a text file unless -b is specified, is this
Yes. By default files are fopened using the "rt" mode on systems
supporting this mode. This behaviour is hardcoded into upstream sed.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple