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: How to prepend a directory to the PATH to accommodate CVSNT?

On  4 Oct, Siegfried Heintze wrote:
>  I notice that Cygwin manipulates the path by prepending " 
>  /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:" to the windows PATH 
>  environment variable. 
>  This is a problem for me because I'm using CVSNT and I need my cvs client to 
>  be /cygdrive/c/Program Files/cvsnt/bin which it never sees because it finds 
>  cvs.exe in /usr/bin instead and this is not the cvsnt client! 
>  How do I prepend /cygdrive/c/Program Files/cvsnt/bin to the path? 

We've been doing this for years, since Cygwin's cvs gives us messages
of the form

$ /usr/bin/cvs update 2>&1 | cat -tvu
Enter passphrase for key /home/luke/.ssh/id_dsa: 
cvs update: warning: unrecognized response `ok^M from cvs server

using either the :pserver: or the external client-server via rsh

Anyway, in your case it should be as simple as this:

PATH="/cygdrive/c/Program Files/cvsnt/bin:$PATH"

You may need to export EDITOR=notepad if you have trouble with cvs
commits aborting because it can't run your editor.

It all works fine; we've been using cvs-1.10 and earlier, compiled
natively for Windows, for years.


Unsubscribe info:
Problem reports:

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