Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <20000929190553.211.qmail@web113.yahoomail.com> Date: Fri, 29 Sep 2000 12:05:53 -0700 (PDT) From: Earnie Boyd Subject: Re: /etc/profile in BASH To: Erik Nolte , Masterson Dave , cygwin AT sources DOT redhat DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Erik Nolte wrote: > > > I didn't realize that a login BASH doesn't execute ~/.bashrc. Be that > as it > > > may, I think it should be the decision of ~/.bash_profile (or > ~/.profile) > > > whether to execute ~/.bashrc -- *NOT* /etc/profile. Putting this into > > > /etc/profile makes it too BASH-centric. What about the [T]CSH users? > Also, > > > what about ~/.bash_login files (as described in the MAN page)? > > > > > > > IIRC [t]csh doesn't user /etc/profile. Use the source, Luke. (tm) > > But sh and ksh do. I don't want my sh's executing .bashrc and failing on > things like alias and 'export var=..." > Uhm, only if they are executing the login code. AFAICT there isn't a way to do that in Cygwin with the provided sh (except for maybe renaming it as -sh). As for ksh I don't have the source for it but you would have to make it think it were in login state for it to even look at /etc/profile or ~/.profile. Those files only get executed when the shell is used for "login". That being said, as system admin you may change it to whatever you wish. You can even supply patches to the sources that create /etc/profile. They will be considered if they are appropriate patches. Cheers, ===== Earnie Boyd mailto:earnie_boyd AT yahoo DOT com --- --- --- Cygwin: POSIX on Windows --- --- Minimalist GNU for Windows --- __________________________________________________ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com