From mboxrd@z Thu Jan 1 00:00:00 1970 From: Earnie Boyd To: "Eirik_Nordbrøden" , cygwin@sourceware.cygnus.com Subject: Re: CR/LF and read is shell scripts Date: Fri, 18 Aug 2000 05:06:00 -0000 Message-id: <20000818120520.2951.qmail@web118.yahoomail.com> X-SW-Source: 2000-08/msg00745.html --- Eirik_Nordbrøden 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