delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/10/14:56:20

X-Spam-Check-By: sourceware.org
Message-ID: <ca5781c80708101155s62a75d2esf777389b7eecb428@mail.gmail.com>
Date: Fri, 10 Aug 2007 14:55:56 -0400
From: yitzle <yitzle AT users DOT sourceforge DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: FW: Eliminating need to run dos2unix on scripts on mounted drive
In-Reply-To: <833AC6745BF7244D8A3F90C2C126E832A52A89@GHXEX.ghx.net>
MIME-Version: 1.0
References: <833AC6745BF7244D8A3F90C2C126E832A52A89 AT GHXEX DOT ghx DOT net>
X-Google-Sender-Auth: 76d143f539d44fcf
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 8/10/07, Mary Ann Yeager <myeager AT ghx DOT com> wrote:
> I have a new installation of Cygwin (Unix/binary mode selected) trying
> to run a script on a mounted drive.
>
> The drive is binary mode:
>
> g: on /cygdrive/g type system (binmode,noumount)
>
> 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?
>
> 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.
>
> Mary Ann Yeager
> Sr. Software Configuration Engineer
>
> Global Healthcare Exchange, LLC
>

During the setup, it asks you about what sort of newline you want to use.
If you select Windows/DOS type opposed to Unix type, you will not have
this issue

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