Hi all,
I tried to write a script that can display the prompt as Linux does for
example:
#
or
$
Here is my script (It works on ksh of UnixWare 7)
UID=`id -u`
if [ $UID -eq 0 ]; then
# '
else
$ '
fi
but It will not display properly after running the command 'priv' to become
another users.
I wonder if I can do a script that can display the prompt as Linux prompt on
almost Unix system in Bourne Shell or Korn Shell without to install Bash.
Thanks in advance for any advise.
H.V