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 Message-ID: From: Todorovic Vladica-VTODORO1 To: "'cygwin AT cygwin DOT com'" Subject: RE: bash 2.05b-8 doesnot execute .bashrc even if HOME is defined and .bashrc is under both ~/ and / Date: Tue, 7 Jan 2003 16:28:08 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Sourcing $HOME/.bashrc explicitly in /etc/profile can also force bash to read user's .bashrc. For example, # make sure we start in home cd "$HOME" # Make sure user's .bashrc is executed. test -f ./.bashrc && . ./.bashrc It is not preferred way to execute ~/.bashrc, but it may be helpful in some (hopefully specific and rare) cases. Vladica -----Original Message----- From: Igor Pechtchanski [mailto:pechtcha AT cs DOT nyu DOT edu] Sent: Tuesday, January 07, 2003 11:31 AM To: Tianming Kong Cc: cygwin AT cygwin DOT com Subject: Re: bash 2.05b-8 doesnot execute .bashrc even if HOME is defined and .bashrc is under both ~/ and / On Tue, 7 Jan 2003, Tianming Kong wrote: > --- Max Bowsher wrote: > > Original Message From: "Tianming Kong" > > > I'm using cygwin v1.3.18 under Windows XP > > > Professional. Unfortunately bash 2.05b-8 does not > > > exectute my startup script ~/.bashrc > > > > > > I defined environement variable HOME as "d:\" using > > > windows control panel. I also copy my .bashrc file to > > > cygwin / directory. > > > > Why / ? Bash certainly doesn't look there. I suggest > > that you make sure that > > HOME in the environment and your home dir in > > /etc/passwd are consistent, and > > that .bashrc is located in that directory. > > > > Max. > > I remember reading from some previous email, saying > that if bash cannot find HOME environment variables > from everywhere else (like Windows Environment > variables, /etc/profile, /etc/passwd, etc.), then it > will try /. > > I didn't set home dir in /etc/passwd -- actually I > didn't set any user entry there. Do you think this > caused the problem? Previously when I was using an > older version cygwin 1.3.10 and bash 2.05a(3), it > worked perfectly fine. > > -Tim Cygwin 1.3.10 didn't have ntsec on by default, so it didn't require your /etc/passwd to be up to date. Ntsec became default starting 1.3.13, IIRC. So now you should update your /etc/passwd (and /etc/group) for everything to work as intended. Either that, or turn off ntsec, but be aware that you'll be missing out on some of the newer features... Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/