delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/26/14:10:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <17B78BDF120BD411B70100500422FC6309E10E@IIS000>
From: Bernard Dautrevaux <Dautrevaux AT microprocess DOT com>
To: "'Matthew Smith'" <matts AT bluesguitar DOT org>,
Cygwin
<cygwin AT sources DOT redhat DOT com>
Subject: RE: Has CR/LF and cat problem with textutils-2.0 been solved?
Date: Tue, 26 Sep 2000 19:59:27 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

> -----Original Message-----
> From: Matthew Smith [mailto:matts AT bluesguitar DOT org]
> Sent: Tuesday, September 26, 2000 7:59 PM
> To: Cygwin
> Subject: Re: Has CR/LF and cat problem with textutils-2.0 been solved?
> 
> 
> I would be interested in comments from the mailing list.  If 
> people want
> \r's stripped, I will implement the changes.

	...
 
> > I think it is arguable whether cat should strip CRs or not. 
>  It is not
> arguable
> > whether bash's backtick handling should treat its input as 
> text mode.
> >
	...
> >
> > cgf
> >

I don't think cat should strip \r's on input; I quite often use cat to
concatenate binary data :-)

However *all* shells (and not only bash) *must* read the standard output of
command expansion (backtick) in *text* mode, as it *does* expect text and is
*not* willing to handle binary data there.

The problem here is thus IMNSHO in cat but in the shell, so *please* don't
feed the cat with a new bug :-).

Regards,

		Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux AT microprocess DOT com
		b DOT dautrevaux AT usa DOT net
-------------------------------------------- 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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