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: Sun, 22 Apr 2001 14:10:57 +0200 From: Corinna Vinschen To: cygapp Subject: Re: ash stdin mode is set to O_TEXT Message-ID: <20010422141057.R15499@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> <004501c0cb24$3f111840$0200a8c0 AT lifelesswks> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <004501c0cb24$3f111840$0200a8c0@lifelesswks>; from robert.collins@itdomain.com.au on Sun, Apr 22, 2001 at 10:03:28PM +1000 On Sun, Apr 22, 2001 at 10:03:28PM +1000, Robert Collins wrote: > > ----- Original Message ----- > From: "Corinna Vinschen" > > > > That's really tricky: > > > > sh < foo O_TEXT? > > cat foo | sh O_BINARY? > > That looks correct to me. I had some trouble with awk a while back that > I haven't gotten around to fixing... and its the same difference. I > don't know whether it's up to the shell to set the input and output > types and let the app override, or whether it's just the apps problem... Only the app knows how it wants it's input so it has to care. A shell wants text, so it sets stdin to O_TEXT. Corinna