We're trying to get PS1 to print the current working directory
with /sbin/sh (for root, Solaris 2.5.1 and 2.6). The following
works for /bin/ksh:
PS1="`hostname`:\$PWD ($LOGNAME)
-> "; export PS1
I thought I was able to accomplish this once on Solaris. It works
for HPUX 10.20 (but I think /sbin/sh is Posix on HP).
--