delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/05/19:38:44

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 6 Oct 2004 09:38:24 +1000 (EST)
From: luke DOT kendall AT cisra DOT canon DOT com DOT au
Subject: RE: How to prepend a directory to the PATH to accommodate CVSNT?
To: Siegfried Heintze <siegfried AT heintze DOT com>
Cc: cygwin AT cygwin DOT com
In-Reply-To: <200410050948625.SM01220@fasolt>
MIME-Version: 1.0
Message-Id: <20041005233824.A55B584C3C@pessard.research.canon.com.au>

On  5 Oct, Siegfried Heintze wrote:
>  >Anyway, in your case it should be as simple as this: 
>  > 
>  >PATH="/cygdrive/c/Program Files/cvsnt/bin:$PATH" 
>  > 
>   
>  Where do I put this statement? .bashrc? 

You could, but why not put it in ~/.profile so it's read just once by
the login shell, and any child shells then have it in the environment,
instead of having to do it themselves?

FRom memory, bash will look for ~/.bash_login, ~/.profile, ~/.login,
(not sure if it's in that order), and use the first one it finds.

But it won't do this if $HOME was created by Cygwin "mkdir" instead of
by Windows Explorer, due to some mysterious access permissions problem.

BTW, I use .profile because it's usable regardless of what (Bourne-like)
shell you use.

luke


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019