Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Sat, 17 Feb 2001 09:36:01 +0100
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin <cygwin@cygwin.com>
Subject: Re: A question for Corinna
Message-ID: <20010217093601.D16740@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin@cygwin.com>
References: <00f101c0988b$eab461a0$3c5350d8@bluesguitar.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <00f101c0988b$eab461a0$3c5350d8@bluesguitar.org>; from matts@bluesguitar.org on Fri, Feb 16, 2001 at 08:47:07PM -0600

On Fri, Feb 16, 2001 at 08:47:07PM -0600, Matthew Smith wrote:
> Hi:
> 
>     This question is addressed specifically to Corinna.  I would like to
> maintain zsh for the cygwin project, and was wondering what kind of
> text/binary issues I'll have to deal with.  I downloaded the source for tcsh
> (I thought perhaps tcsh would be a better 'case study' - I'd wager it hasn't
> been as mutated as bash).  I didn't see any readme/patches in regards to
> cygwin though.  Can you send me your cygwin patches for tcsh?  Thanks very
> much for your time.

If you have downloaded the tcsh sources from cygwin/contrib/tcsh,
you have the changes incorporated. There's no hint to Cygwin itself
but you will find many places with sth. like


	#ifdef O_TEXT
	  setmode (fd, O_TEXT);
	#endif

or the same for O_BINARY.

Roughly spoken the bin/textmode patch is doing usually the same
in all shells:

O_TEXT mode for:
	- stdin
	- script files
	- here scripts
	- backquote commands
	- the `read' command

O_BINARY mode for:
	- pipes

Leave it as it is for:
	- stdout, stderr and their redirection

(no demand for completeness)

Hope, that helps,
Corinna

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

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

