This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
RE: CR/LF and read is shell scripts
- To: "Fifer, Eric" <EFifer at sanwaint dot com>, "'Eirik_Nordbrøden'" <eirik dot nordbroden at scandpower dot no>, cygwin at sourceware dot cygnus dot com
- Subject: RE: CR/LF and read is shell scripts
- From: Earnie Boyd <earnie_boyd at yahoo dot com>
- Date: Tue, 22 Aug 2000 08:58:43 -0700 (PDT)
--- "Fifer, Eric" <EFifer@sanwaint.com> wrote:
>
> >Anyone that has got an idea?
>
> Try something like 'sed -n p' instead of 'cat'.
>
> The cat currently included with cygwin does not
> work correctly on text mounts. See my previous
> email for details.
>
Let me see if IIRC. You, Eric Fifer, had said that cat is forcing binary mode
file processing regardless of the text/binary mode default settings. Cat,
IIRC, comes from the textutils package. This implies that cat is a text
utility and processing of files should default to text mode processing.
IIRC, you had also suggested a switch --binmode for processing binary files
with cat. I believe that this should be the case. So given this cat should be
changed to:
Process stdin in text mode and stdout in binary mode.
Process stdin and stdout in binary mode if --binmode is given.
Process stdin and stdout in text mode if --textmode is given.
Process stdin in binary if --binmode-in is given.
Process stdout in text mode if --textmode-out is given.
The switch --textmode-in and --binmode-out should also be supported.
Comments?
Cheers,
=====
---
Earnie Boyd: <mailto:earnie_boyd@yahoo.com>
__Cygwin: POSIX on Windows__
Cygwin Newbies: <http://gw32.freeyellow.com/>
__Minimalist GNU for Windows__
Mingw32 List: <http://www.egroups.com/group/mingw32/>
Mingw Home: <http://www.mingw.org/>
__________________________________________________
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com