This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Proposal for new cygwin flag: notextmode masks away O_TEXT
On Thu, Sep 05, 2002 at 12:39:51PM +0200, dvasaru@broadpark.no wrote:
>You're right of course, and I will not push for this very hard, but
>such a flag would ensure compatible results across platforms:
>
>file.txt:
>i have crlf\r\n
>and another one\r\n
>
>solaris> sed 's/crlf$/nocr/' file.txt
>i have crlf\r\n
>and another one\r\n
Works fine for me on a binmode or textmode mount, which is by
design. sed should open its input in textmode and it's output
in binary mode.
>cygwin> sed 's/crlf$/nocr/' file.txt
>i have nocrlf\n
>and another one\n
>
>proposed:
>cygwin-notextmode> sed 's/crlf$/nocrlf/' file.txt
>i have crlf\r\n
>and another one\r\n
>
>Read also my comments below.
I think you have the tools you need, so I do not want to complicate
the binmode/textmode logic in cygwin with YA option.
That's it for me.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/