X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <31955366.post@talk.nabble.com> References: <31955366 DOT post AT talk DOT nabble DOT com> Date: Wed, 29 Jun 2011 13:49:44 -0500 Message-ID: Subject: Re: .bashrc and.bash_profile missing From: Weiqi Gao To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p5TIo4wJ000500 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 AT gmail DOT 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