delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/10/17:25:10

X-Spam-Check-By: sourceware.org
Message-ID: <46BCD7AD.5010703@byu.net>
Date: Fri, 10 Aug 2007 15:25:01 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, myeager AT ghx DOT com
Subject: Re: FW: Eliminating need to run dos2unix on scripts on mounted drive
References: <833AC6745BF7244D8A3F90C2C126E832A52A89 AT GHXEX DOT ghx DOT net>
In-Reply-To: <833AC6745BF7244D8A3F90C2C126E832A52A89@GHXEX.ghx.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Mary Ann Yeager on 8/10/2007 12:50 PM:
> When I try to run the script, I get the following:
> 
> ./01do_build.sh: line 2: $'\r': command not found
> ./01do_build.sh: line 6: $'\r': command not found
> ./01do_build.sh: line 9: $'\r': command not found
> 
> If I run a dos2unix on the script, those errors go away.  Running from
> another Cygwin install, I have already run the dos2unix command on this
> file via the mount, why do I have to run it again?  

Running d2u helps any time you have reintroduced carriage returns into a
script file on a binary mount.

> 
> Also, is there something in my setup that I can do to make it such that
> I don't have to run it at all?  A previous install of Cygwin did not
> require the dos2unix.

Reread the bash announcement for several ideas.
http://cygwin.com/ml/cygwin-announce/2007-05/msg00003.html

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGvNet84KuGfSFAYARAuqcAKC91GWKdcwUoyDgrLrM0gNru4ZOTQCgybt+
Rrbgn2sxHpOGsPMIzIoMLlw=
=RZ14
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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