[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Control-C kills interactive bash



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.

-- 
Lesley Walker
Linux Systems Administrator
Opus International Consultants Ltd
Email lesley.walker@opus.co.nz
Tel +64 4 471 7002, Fax +64 4 473 3017
http://www.opus.co.nz
Level 9  Majestic Centre, 100 Willis Street, PO Box 12 343
Wellington, New Zealand

Reply to: