On Thu, Mar 06, 2003 at 01:57:40AM +0700, Jason Smith wrote:

> > ssh machine echo $PATH  yields:
> >
> > /usr/local/globus-2.2.3/bin:/usr/local/globus-2.2.3/sbin:/usr/local/bin
> [snip]
> 
> Hmm, if you typed those in as you emailed, then $PATH got interpolated 
> before ssh was executed.  That is, by bash on your SSHer, not your SSHee.
> 
> Shells interpret all variables that they see before executing the command.  
> A way to make your shell not see $PATH is to hide it in single quotes: 
> ssh machine echo '$PATH'

Good point. Doing it correctly yields:

[EMAIL PROTECTED] shrew]$ ssh eye2 echo '$PATH'
/usr/local/bin:/bin:/usr/bin


-- 
Shashank G. Khandelwal
Research Engineering/Scientist Assistant
The Center for Computational Visualization
Texas Institute for Computational Engineering and Sciences
http://www.cs.utexas.edu/users/shrew/
_______________________________________________
Siglinux mailing list
[EMAIL PROTECTED]
http://www.utacm.org/mailman/listinfo/siglinux

Reply via email to