.bashrc and.bash_profile missing

Weiqi Gao weiqigao@gmail.com
Wed Jun 29 18:50:00 GMT 2011

On Wed, Jun 29, 2011 at 9:42 AM, Ballaw wrote:
> I have used cygwin for Netbeans for about 6 months and today when I open the
> shell I get:
> bash: $'\r': command not found

In the past, when I get the error "'\r': command not found" from bash
in Cygwin, the cause has always been that the shell script file has
been inadvertently converted to the DOS format.

> after which the usual promt was missing and -> appeared instead.
> I opened up cygwin.bat in notpad++ and changed the path to
> home/user/cygdrive and it said it couldn't find the file but it jerked back
> to the usual prompt so I was able to look inside my home/user/ directory.
> After using ls -a it showed that this directory was completely empty, no
> .bashrc, no .bash_profile. I'm fairly new to this so I don't know why this
> is happening? ANy help would be appreciated!

Weiqi Gao (高为奇)

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

More information about the Cygwin mailing list