This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Has CR/LF and cat problem with textutils-2.0 been solved?


> -----Original Message-----
> From: Matthew Smith [mailto:matts@bluesguitar.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@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]