Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 From: ericblake AT comcast DOT net (Eric Blake) To: Poor Yorick , cygwin AT cygwin DOT com Subject: Re: bash not running bash_profile or bashrc Date: Tue, 20 Sep 2005 02:11:50 +0000 Message-Id: <092020050211.3222.432F6FE600083E5A00000C9622073000330A050E040D0C079D0A@comcast.net> > I recently deleted c:\cygwin and my package repository and then > installed cygwin again using the latest setup.exe. That's usually not necessary. It is possible (even recommended) to upgrade without wiping the older versions, so that your customizations are preserved. > The first xterm that > gets fired up with startxwin.bat correctly runs .bash_profile. However, > if I start another xterm from that xterm, neither .bash_profile nor > .bash_rc is run. PS1 gets reset to "$". The second xterm also loses > tab-completion functionality. I do, however, in the second xterm, get > the "Your group is currently "mkpasswd" message. > > Because it might be related, I'll describe a second problem. The command Yep, it was related - until you have run mkpasswd, /etc/passwd is unpopulated, so cygwin doesn't know any better than to set your home directory to: > > HOME = `/cygdrive/n' And if that is not what you thought it should be, it would explain why your .bashrc was not found. > > mkpasswd -d > /etc/passwd > > seems to hang. I get no output and it never completes. Depending on the size of your domain, it can take a LOOONG time. Be patient, it is not hung. If you want to see progress, do this instead: mkpassword -d | tee /etc/passwd -- Eric Blake volunteer cygwin bash maintainer -- 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/