CR/LF and read is shell scripts

Earnie Boyd earnie_boyd@yahoo.com
Fri Aug 18 05:06:00 GMT 2000


--- 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



More information about the Cygwin mailing list