Re: Control-C kills interactive bash
On Thu, Mar 06, 2008 at 04:58:21PM +1300, Lesley Walker wrote:
> Ron Johnson wrote:
>
> On 03/05/08 17:39, Lesley Walker wrote:
>
>
> After upgrading from Sarge to Etch, I have this problem, Ctrl-C kills
> the current interactive Bash shell.
> ...
> I feel as though I must be overlooking something completely obvious, can
> anyone suggest what?
>
>
>
> Console or an X window?
>
>
>
> It happens on both.
>
> Never mind... I think I found it. We have this line in /etc/profile:
> trap "exit" 2 3 23
> If I comment it out the problem goes away. Time for me go and RTFM on traps.
>
>
That is odd. IIRC control-d was set to 'exit'. so in this case various
signals are set to do the same thing. Why is beyond me.
-K
--
| .''`. == Debian GNU/Linux == | my web site: |
| : :' : The Universal |mysite.verizon.net/kevin.mark/|
| `. `' Operating System | go to counter.li.org and |
| `- http://www.debian.org/ | be counted! #238656 |
| my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
|join the new debian-community.org to help Debian! |
|_______ Unless I ask to be CCd, assume I am subscribed _______|
Reply to: