ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/04/22/12:27:21

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: Sun, 22 Apr 2001 14:10:57 +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: <20010422141057.R15499@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> <004501c0cb24$3f111840$0200a8c0 AT lifelesswks>
Mime-Version: 1.0
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" <cygwin-apps AT cygwin DOT com>
> >
> > 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

- Raw text -


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