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?= Reply-To: =?ISO-8859-1?Q?LABORIE_Cl=E9ment?= , Sylvain Gravejat User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: cygwin AT cygwin DOT com CC: Sylvain Gravejat 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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/