delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/18/08:07:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <earnie_boyd AT yahoo DOT com>
Subject: 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
MIME-Version: 1.0

--- Eirik_Nordbrøden <eirik DOT nordbroden AT scandpower DOT 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 AT yahoo DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019