delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/04/23/04:06:16

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Date: Mon, 23 Apr 2001 10:06:06 +0200
From: Corinna Vinschen <cygwin-apps AT cygwin DOT com>
To: cygapp <cygwin-apps AT cygwin DOT com>
Subject: Re: ash stdin mode is set to O_TEXT
Message-ID: <20010423100606.Y15499@cygbert.vinschen.de>
Mail-Followup-To: cygapp <cygwin-apps AT cygwin DOT com>
References: <11216876326 DOT 20010421202556 AT logos-m DOT ru> <20010421131957 DOT B4033 AT redhat DOT com> <20010422135957 DOT O15499 AT cygbert DOT vinschen DOT de> <3AE2DBAC DOT 749E6F98 AT yahoo DOT com> <20010423003623 DOT W15499 AT cygbert DOT vinschen DOT de> <20010422185247 DOT C25103 AT redhat DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010422185247.C25103@redhat.com>; from cgf@redhat.com on Sun, Apr 22, 2001 at 06:52:48PM -0400

On Sun, Apr 22, 2001 at 06:52:48PM -0400, Christopher Faylor wrote:
> Actually, the 'cat foo | sh' example should still default to text mode.
> sh shouldn't interpret CRs when a pipe is opened.
> 
> I think what is really needed here is for sh to not use setmode at all.
> It should probably set its stdin to binary and do the CR stripping itself.

*looong sigh*

I recall that I did that when I should change ash to accomodate
text/binmode for the first time. I have been advised to use
setmode instead...

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

- Raw text -


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