[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [50 character or so descriptive subject here (for reference)]
From: |
Paul Jarc |
Subject: |
Re: [50 character or so descriptive subject here (for reference)] |
Date: |
01 Mar 2001 09:51:50 -0500 |
User-agent: |
Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 |
Martin Flack <martin@neoreality.com> writes:
> Red Hat Linux (and I suppose many other UNIX/Linux
> configurations) disallows root login by telnet, and requires you to
> login as a regular user and su to root. I frequently have telnet
> connections open where I am running two levels of bash in this way. To
> exit out when I'm finished working as root and finished altogether
> with that host, I frequently hit CTRL+D CTRL+D in rapid succession,
> since that will bring me out of both shells and close the
> connection.
You could run 'exec su' instead of 'su' from the first shell; then
you'd have only one shell to exit from. Breaking the habit of two
C-d's is left as an exercise to the reader.
> I humbly submit a patch I wrote up for my local Red Hat Linux
> 7.0 system that will add a one second delay to the stopped jobs
> message, and then flush the input buffer.
A more widely useful solution, I think, would be to have a shell
option that toggles between the existing behavior, and completely
disallowing exit when there are stopped jobs. I.e., with the option
set, you would get the "There are stopped jobs" message whenever you
try to exit with stopped jobs, even if you try to exit twice
consecutively.
paul