delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/05/16:55:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cgf AT redhat DOT com>
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> <CHEDKHJJDLOCCOFLMGEACEJGCLAA DOT dvasaru AT broadpark DOT no> <20020905032602 DOT GC10427 AT redhat DOT com> <1031222391 DOT 3d7734779dac6 AT mail DOT broadpark DOT no>
Mime-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019