This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setting cygwin PATH


* Fungazid (Mon, 30 Apr 2007 12:16:54 -0700 (PDT))
> > .bashrc is run because, for a login shell,
> > .bash_profile tells it to be.
> > 
> > How are you starting cygwin?  It should be enough
> > for it to happen
> > everytime...
> 
> I am starting cygwin by clicking on its icon.
> senenv HOME is "/home/xxxx" (xxxxx is my name account
> in windows xp).
> I copied the file "/etc/skel.bashrc" into my HOME, and
> added the line: 
> export PATH=/home/T-COFFEE/bin:`printenv PATH`
> This didn't change nothing. I had to add this command
> from the command line to get a the new path
> temporarily.
> 
> I guess I missed something ...

Yes. You missed reading mine and John's answer as well as reading the 
bash man page. The cygwin.bat invokes a login shell. You have to 
source .bashrc from .bash_profile.


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]