RE: How to prepend a directory to the PATH to accommodate CVSNT?

2004-10-06 Thread Siegfried Heintze
I looked in c:\Cygwin\home\Administrator and could not find a .profile file
using emacs. There was a .bash_profile file. Should I create a .profile
file?
  Thanks,
Siegfried

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, October 05, 2004 5:38 PM
To: Siegfried Heintze
Cc: [EMAIL PROTECTED]
Subject: RE: How to prepend a directory to the PATH to accommodate CVSNT?

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/



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



Re: How to prepend a directory to the PATH to accommodate CVSNT?

2004-10-06 Thread Edward L. Fox
Just Do It!

On Wed, 6 Oct 2004 11:18:31 -0600, Siegfried Heintze
[EMAIL PROTECTED] wrote:
 I looked in c:\Cygwin\home\Administrator and could not find a .profile file
 using emacs. There was a .bash_profile file. Should I create a .profile
 file?
  Thanks,
Siegfried
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
 [EMAIL PROTECTED]
 Sent: Tuesday, October 05, 2004 5:38 PM
 To: Siegfried Heintze
 Cc: [EMAIL PROTECTED]
 Subject: RE: How to prepend a directory to the PATH to accommodate CVSNT?
 
 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/
 
 
 
 
 --
 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/
 


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



RE: How to prepend a directory to the PATH to accommodate CVSNT?

2004-10-06 Thread luke . kendall
On  6 Oct, Siegfried Heintze wrote:
  I looked in c:\Cygwin\home\Administrator and could not find a .profile file 
  using emacs. There was a .bash_profile file. Should I create a .profile 
  file? 
Thanks, 
  Siegfried 

It's not necessary, unless you might also run other Bourne shells.

If you are, then it makes sense to use .profile instead of
..bash_profile (just don't use any bash extensions there).

BTW, if you are appearing as Administrator, and you're actually logging
into a domain, it probably means you need to run mkpasswd -d and add
the output to /etc/passwd (mkpasswd -d  /etc/passwd).

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/



Re: How to prepend a directory to the PATH to accommodate CVSNT?

2004-10-05 Thread Edward L. Fox
Hi, Siegfried:

In my opinion, I don't think it a good idea to use native Windows
program in cygwin.

Yes, you can remove your cygwin version of cvs.exe in /usr/bin and
create a symbolic link there, pointing to /cygdrive/.../cvsnt/bin/cvs.exe.
And it in fact will run instead of cygwin version. But the native Windows
program will not recognize the strange path offered by cygwin's shell.

If you are always using relative path, I think the native Windows
program will work as well. Or you can write a simple wrapper to translate
the cygwin path into native Windows path. Who knows? Who cares?

Good luck!


Edward L. Fox

2004-10-05


From: [EMAIL PROTECTED]

On Mon, 4 Oct 2004 23:12:05 -0600, Siegfried Heintze [EMAIL PROTECTED]
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?
 
 Thanks
 Siegfried
 
 --
 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/
 


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



Re: How to prepend a directory to the PATH to accommodate CVSNT?

2004-10-05 Thread luke . kendall
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 21 | 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
methods.

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.

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/



RE: How to prepend a directory to the PATH to accommodate CVSNT?

2004-10-05 Thread Siegfried Heintze



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, October 05, 2004 12:45 AM

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?

Thanks,
Siegfried


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



RE: How to prepend a directory to the PATH to accommodate CVSNT?

2004-10-05 Thread Siegfried Heintze


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Edward L. Fox
Sent: Tuesday, October 05, 2004 12:24 AM
To: [EMAIL PROTECTED]
Subject: Re: How to prepend a directory to the PATH to accommodate CVSNT?

Hi, Siegfried:

In my opinion, I don't think it a good idea to use native Windows
program in cygwin.

Why? I do it all the time?


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



RE: How to prepend a directory to the PATH to accommodate CVSNT?

2004-10-05 Thread luke . kendall
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/



How to prepend a directory to the PATH to accommodate CVSNT?

2004-10-04 Thread Siegfried Heintze
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?

Thanks
Siegfried


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