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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.