This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
RE: Has CR/LF and cat problem with textutils-2.0 been solved?
- 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?
- From: Bernard Dautrevaux <Dautrevaux at microprocess dot com>
- Date: Tue, 26 Sep 2000 19:59:27 +0200
> -----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