* .bashrc and.bash_profile missing
@ 2011-06-29 14:42 Ballaw
2011-06-29 18:50 ` Weiqi Gao
0 siblings, 1 reply; 2+ messages in thread
From: Ballaw @ 2011-06-29 14:42 UTC (permalink / raw)
To: cygwin
I have used cygwin for Netbeans for about 6 months and today when I open the
shell I get:
bash: $'\r': command not found
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!
--
View this message in context: http://old.nabble.com/.bashrc-and.bash_profile-missing-tp31955366p31955366.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: .bashrc and.bash_profile missing
2011-06-29 14:42 .bashrc and.bash_profile missing Ballaw
@ 2011-06-29 18:50 ` Weiqi Gao
0 siblings, 0 replies; 2+ messages in thread
From: Weiqi Gao @ 2011-06-29 18:50 UTC (permalink / raw)
To: cygwin
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 (高为奇)
weiqigao@gmail.com
http://www.weiqigao.com/blog/
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-29 18:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-29 14:42 .bashrc and.bash_profile missing Ballaw
2011-06-29 18:50 ` Weiqi Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).