Here we see the typical deal. You asked me about ulimit. I tried to get a shell oh, six times this time before the magic hand stopped logging me out. Whereupon it bites off the first character of what I type and logs me out, saving the message for after the next prompt. Then I get a shell again to give you the answer.
# su - nobody No directory, logging in with HOME=/ [EMAIL PROTECTED]:/$ logout # su - nobody No directory, logging in with HOME=/ [EMAIL PROTECTED]:/$ logout # su - nobody No directory, logging in with HOME=/ [EMAIL PROTECTED]:/$ logout # su - nobody No directory, logging in with HOME=/ [EMAIL PROTECTED]:/$ logout # su - nobody No directory, logging in with HOME=/ [EMAIL PROTECTED]:/$ logout # su - nobody No directory, logging in with HOME=/ [EMAIL PROTECTED]:/$ ulimit logout # su - nobody bash: limit: command not found # No directory, logging in with HOME=/ [EMAIL PROTECTED]:/$ ulimit unlimited [EMAIL PROTECTED]:/$ stty speed 38400 baud; line = 0; erase = <undef>; kill = <undef>; -brkint -imaxbel -onlcr -echo Happens also in xterm, where # stty speed 38400 baud; line = 0; -brkint -imaxbel iutf8 SC> Does that happen straight away or after a delay? The logout happens instantaneously, no waiting for me to type my first command as nobody. SC> The "logout" thing looks a bit like eof from the terminal. Very much so. SC> strace would probably help then: No. Every time I use strace I get a shell that sticks around. The bug is not triggered. I'll send you one anyway. SC> And look at the last read(0 in /tmp/strace.out SC> Could be a tty setting as well. SC> stty min 0 time 10 -icanon Ho ho ho, that even eats through all the shells stacked up in my emacs shell buffer exiting each one. SC> With readline Has readline. I'll send you shopt output.