PROBLEMS WITH THE KORN SHELL (KSH)


When attempting to log in, everything works as usual, but the command prompt never appears. And you're a ksh user!

There is a bug in the ksh that causes it to hang when the home directory is located over an NFS mount. The solutions listed were:

  • Chmod 777 .sh_history -- Didn't work here

  • export HISTFILE to a non-NFS mounted location -- Did work!

  • I got this information from the comp.sys.hp.hpux FAQ, section 7.12.

    This problem only happened on fozzie, so I added the following script to /etc/dt/config/Xsession.d/edg.

    if [[ $SHELL = /usr/bin/ksh ]] then
    export HISTFILE=/tmp/histfile.$USER
    fi