Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <20000818120520.2951.qmail@web118.yahoomail.com> Date: Fri, 18 Aug 2000 05:05:20 -0700 (PDT) From: Earnie Boyd Subject: Re: CR/LF and read is shell scripts To: "Eirik_Nordbrøden" , cygwin AT sourceware DOT cygnus DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- 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: __Cygwin: POSIX on Windows__ Cygwin Newbies: __Minimalist GNU for Windows__ Mingw32 List: Mingw Home: __________________________________________________ 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 AT sourceware DOT cygnus DOT com