View Full Version : ^D in terminal causes logout
unknown
2007.04.30, 11:30 AM
Control-D in the terminal causes an instant logout, without changing Control-D (I use it for other things), does anyone know how to stop it logging you out?
Skorche
2007.04.30, 11:59 AM
Shouldn't the shell quit when it reaches the end of input? What would you want it to do?
unknown
2007.04.30, 05:33 PM
not quit...
maybe I didnt think this through.
I would only want to change this for the actual shell in using interactively though.
Duane
2007.04.30, 06:59 PM
^D is the standard exit signal for bash... why would you want to change it?
unknown
2007.04.30, 10:42 PM
because some programs have me hit ^D multipe times to quit, its very easy to press again once you are back in the shell. So is there some good way to change it for just my interactive shell?
e.g. not affect if I were to do "echo blah | bash"
unknown
2007.06.20, 06:31 AM
just found out I can use ^Z to suspend a process, so its still running but in background then fg to restart it, jobs to list suspended processes, and kill %n to kill a suspended process.
so ^Z doesn't logout in the shell :)
Skorche
2007.06.20, 05:34 PM
So you'd rather suspend then kill an app instead of hitting ^d? (scratches head)
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.