This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Text Mode and "$'\r': command not found" error
- From: Clément LABORIE <clement dot laborie at atosorigin dot com>
- To: cygwin at cygwin dot com
- Cc: Sylvain Gravejat <sylvain dot gravejat at atosorigin dot com>
- Date: Fri, 29 Aug 2008 12:02:39 +0200
- Subject: Text Mode and "$'\r': command not found" error
- Reply-to: LABORIE Clément <clement dot laborie at atosorigin dot com>, Sylvain Gravejat <sylvain dot gravejat at atosorigin 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/