0

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.

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by shakilaf
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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.