X-Recipient: archive-cygwin@delorie.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.laborie@atosorigin.com>
Reply-To: =?ISO-8859-1?Q?LABORIE_Cl=E9ment?=  <clement.laborie@atosorigin.com>,
   Sylvain Gravejat <sylvain.gravejat@atosorigin.com>
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
MIME-Version: 1.0
To: cygwin@cygwin.com
CC: Sylvain Gravejat <sylvain.gravejat@atosorigin.com>
Subject: Text Mode and  "$'\r': command not found" error
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

