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: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Date: Mon, 23 Apr 2001 10:06:06 +0200 From: Corinna Vinschen To: cygapp Subject: Re: ash stdin mode is set to O_TEXT Message-ID: <20010423100606.Y15499@cygbert.vinschen.de> Mail-Followup-To: cygapp 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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.