X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Thorsten Kampe <thorsten@thorstenkampe.de>
Subject:  Re: setting cygwin PATH
Date:  Mon, 30 Apr 2007 21:40:44 +0100
Lines: 23
Message-ID: <f15k7m$brk$1@sea.gmane.org>
References:  <1334.192.168.0.12.1177956084.squirrel@mail.morrison.mine.nu> <315634.52644.qm@web52004.mail.re2.yahoo.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset="iso-8859-15"
Content-Transfer-Encoding:  7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

