www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/29/06:03:26

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <48B7C93F.9000209@atosorigin.com>
Date: Fri, 29 Aug 2008 12:02:39 +0200
From: =?ISO-8859-1?Q?Cl=E9ment_LABORIE?= <clement DOT laborie AT atosorigin DOT com>
Reply-To: =?ISO-8859-1?Q?LABORIE_Cl=E9ment?= <clement DOT laborie AT atosorigin DOT com>,
Sylvain Gravejat <sylvain DOT gravejat AT atosorigin DOT com>
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: Sylvain Gravejat <sylvain DOT gravejat AT atosorigin DOT com>
Subject: Text Mode and "$'\r': command not found" error
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

Dear all,

I am currently working on a project using Cygwin to submit Bash files 
(developments are done under Windows, with Notepad for example).
Here is my problem:
I have installed new version of Cygwin, with set up mode "Dos Mode" 
instead of "Unix mode" because all of our files are in Windows Format.
When I try to source (using source or '.' builtin) a file, I have error:

 >source ${PROJECT_DIR}/myBash.bash
..... $'\r': command not found

 >echo ${PROJECT_DIR}
E:/project/...

When I replace ${PROJECT_DIR} by Unix directory /cygdrive/e/project/..., 
it works well.

Note: this only happens when I try to source (not when I try to execute).
Note also that we had previous release of Cygwin installed with "Unix 
Mode" on which it used to work... (even if I don't understand why)

Does anyone have an idea for how to solve this?

Thanks and regards,
Clément LABORIE


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