Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 5 Sep 2002 11:28:21 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Proposal for new cygwin flag: notextmode masks away O_TEXT Message-ID: <20020905152821.GB16827@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20020904110128 DOT B1213 AT cygbert DOT vinschen DOT de> <20020905032602 DOT GC10427 AT redhat DOT com> <1031222391 DOT 3d7734779dac6 AT mail DOT broadpark DOT no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1031222391.3d7734779dac6@mail.broadpark.no> User-Agent: Mutt/1.3.23.1i On Thu, Sep 05, 2002 at 12:39:51PM +0200, dvasaru AT broadpark DOT 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/