| delorie.com/archives/browse.cgi | search |
| 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: | <20000921190841.610.qmail@web121.yahoomail.com> |
| Date: | Thu, 21 Sep 2000 12:08:41 -0700 (PDT) |
| From: | Earnie Boyd <earnie_boyd AT yahoo DOT com> |
| Subject: | RE: Bug Report: CVS often fails in scripts under Cygwin |
| To: | Josh Schulte <jschulte AT equilibrium DOT com> |
| Cc: | cygwin users <cygwin AT sourceware DOT cygnus DOT com> |
| MIME-Version: | 1.0 |
--- Josh Schulte <jschulte AT equilibrium DOT com> wrote:
>
> Do I or do I not want \r\n? I wrote the scripts in windows so the shell
> script will have them. What is a good way to double check. I am not sure
> what perl does when it sends the commands to the shell (\r\n or just \n) it
> starts with system().
>
Well since cvs is trying to open a file name foo\r and since foo\r is an
illegal filename for Win32; then, you don't want \r\n line endings. Have you
updated you Cygwin recently? IIRC, both ash and bash were modified to read
script files in text mode so that these problems don't occur.
To modify your file you can:
cp foo.sh foo.tmp
tr -d '\r' < foo.tmp > foo.sh
rm foo.tmp
This will delete all \r's in the file.
Cheers,
=====
--- <http://earniesystems.safeshopper.com> ---
Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com>
__Cygwin: POSIX on Windows__
Cygwin Newbies: <http://gw32.freeyellow.com/>
__Minimalist GNU for Windows__
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |