[EMAIL PROTECTED] wrote:
CR> Does this happen only in an emacs shell-mode window?
No. It happens also in xterm. Today it at least allowed me to do -c
date. I did not type exit or logout. The magic hand did.
# su - nobody -c date
No directory, logging in with HOME=/
Sat May  3 01:03:10 CST 2008
# su - nobody -c 'sh -i'
No directory, logging in with HOME=/
sh-3.2$ exit
# su - nobody
No directory, logging in with HOME=/
[EMAIL PROTECTED]:/$ logout

FWIW, I can't reproduce this on Fedora 8, the version of Linux I have
available.  This really looks like a terminal process group problem --
read will return -1/EIO if the process doing the read isn't in the same
process group as the terminal and the process is blocking SIGTTIN, which
interactve shells do by default.  Does su do anything with process
groups?

Chet


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    [EMAIL PROTECTED]    http://cnswww.cns.cwru.edu/~chet/


Reply via email to