This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
RE: Bug Report: CVS often fails in scripts under Cygwin
- To: Josh Schulte <jschulte at equilibrium dot com>
- Subject: RE: Bug Report: CVS often fails in scripts under Cygwin
- From: Earnie Boyd <earnie_boyd at yahoo dot com>
- Date: Thu, 21 Sep 2000 12:08:41 -0700 (PDT)
- Cc: cygwin users <cygwin at sourceware dot cygnus dot com>
--- Josh Schulte <jschulte@equilibrium.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@yahoo.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@sourceware.cygnus.com