954,228 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

path variable in tsh

Hi

Im using tshell in my SunOS server. my .login file contains the following command:
set path=/usr/bin /usr/local/bin
echo "In Login- PATH="$PATH
echo "In Login- path="$path

The output is:
In Login- PATH=/usr/bin:/usr/local/bin
In Login- path=/usr/bin /usr/local/bin

In tshell, is both "path" and "PATH" variables are same and delimited only with ":" and a space?

Thanks,
Shakila.

shakilaf
Newbie Poster
7 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

Im using cshell in my SunOS server. my .login file contains the following command:
set path=/usr/bin /usr/local/bin
echo "In Login- PATH="$PATH
echo "In Login- path="$path

The output is:
In Login- PATH=/usr/bin:/usr/local/bin
In Login- path=/usr/bin /usr/local/bin

In tshell, is both "path" and "PATH" variables are same and delimited only with ":" and a space?

Ans: This is becuase cshell imports its $path variable from the environment's $PATH variable and exports $path to $PATH when it's set. So the two variables are one and the same variables.

Thanks,
Shakila.

shakilaf
Newbie Poster
7 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: