This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Bash PATH via ssh
Thanks. I now have ensured that ~/.profile, ~./bash_profile, ~/.bash_login,
/etc/profile all contain the lines:
PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
export PATH
But still when I do ssh 192.168.0.150 'echo $PATH' it returns only the
windows path items. What am I missing here?
Any help appreciated.
Michael
----- Original Message -----
From: <lhall@pop.ma.ultranet.com>
To: <michael@hipp.com>; <cygwin@cygwin.com>
Sent: Wednesday, January 08, 2003 1:18 PM
Subject: RE: Bash PATH via ssh
I believe it's correct to assume that the invocation
of bash via ssh is a login shell, not an interactive
shell. Cygwin puts its path additions in /etc/profile.
The corallary for a user would be ~/.profile, ~/.bash_profile
or ~/.bash_login as the INVOCATION section of the bash man page
suggests.
Larry
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/