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: "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: Fri, 18 Aug 2000 05:05:20 -0700 (PDT)
--- Eirik_Nordbrøden <eirik.nordbroden@scandpower.no> wrote:
> Hello
>
> I have just installed cygwin on my NT workstation and have a problem with a
> shell script. The script generates a temporary file by the use of the echo
> statement and later on the content is evaluated with a cat and consecutive
> read statements. The problem is that the generated file contains CRLF at the
> end of each line, but the read statement only recognises the LF and therefore
> adds CR to the last variable read. I do not want to change the script so I
> wonder if this is an installation problem or if there are some other way to
> get around it. At installation I choose the option to treat all text files as
> MS Dos files.
>
Output pasted into a mail from `cygcheck -s -r -v' would be useful. Post it to
the list not to me. BTW, I'm guessing that you're using non-Cygwin tools
somewhere along the way.
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!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com