Proposal for new cygwin flag: notextmode masks away O_TEXT

Christopher Faylor cgf@redhat.com
Thu Sep 5 08:32:00 GMT 2002


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/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /