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 11:07:23 -0400 From: Christopher Faylor To: cygapp Subject: Re: ash stdin mode is set to O_TEXT Message-ID: <20010423110723.A15811@redhat.com> Reply-To: cygwin-apps AT cygwin DOT com 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> <20010423100606 DOT Y15499 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <20010423100606.Y15499@cygbert.vinschen.de>; from cygwin-apps@cygwin.com on Mon, Apr 23, 2001 at 10:06:06AM +0200 On Mon, Apr 23, 2001 at 10:06:06AM +0200, Corinna Vinschen wrote: >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... Jeez. Who was the idiot who told you to do that? Oh. cgf