This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: "bash: $'\r': command not found"; also "e"s nonfunctional and get deleted in bash window
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 26 Jun 2009 03:14:02 +0100
- Subject: Re: "bash: $'\r': command not found"; also "e"s nonfunctional and get deleted in bash window
- References: <318769.13123.qm@web111507.mail.gq1.yahoo.com>
Richard Haney wrote:
> I imagine that the messages involving "\r" have something to do with the
> \r\n conventions. So I should mention that I use WordPad to edit
> bash-initialization files.
That'll be the cause of the problem then; wordpad is a windows program, so
it tends to use windows-style CR/LF line ends. You can still use it to edit
shell scripts, but always remember to run "d2u" on them afterward.
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple