Hi folks,
I'd like to create a prompt on our Sun machines that shows the current path the user is in...
Under AIX we did something like:
readonly LOGNAME
export LOGNAME
case LOGNAME in
root) PS1='<root> $PWD # ';;
But as soon as I login I get:
<root> $PWD #
Instead of
<root> / #
as desired...
Looks like Sun is not familiar either with $PWD or with $PWD surrounded by ' '
What's wrong here?
Any ideas what the differences are between AIX and Sun in this case ?
Thanks in advance !
Regards
Thomas
I'd like to create a prompt on our Sun machines that shows the current path the user is in...
Under AIX we did something like:
readonly LOGNAME
export LOGNAME
case LOGNAME in
root) PS1='<root> $PWD # ';;
But as soon as I login I get:
<root> $PWD #
Instead of
<root> / #
as desired...
Looks like Sun is not familiar either with $PWD or with $PWD surrounded by ' '
What's wrong here?
Any ideas what the differences are between AIX and Sun in this case ?
Thanks in advance !
Regards
Thomas