I'm using Kubuntu 14.04. When I exiting terminal emulator (konsole or yakuake) by doing something like kill -9 $$
it doesn't close, and saying:
Warning: Program '/bin/bash' crashed.
How could I disable this behavior and force terminal emulator to silently close when shell is killed?
In the same system, when prompting kill -9 $$
in xterm
, it exits without any crash reported.
I don't remember exactly, in which Linux distributions I saw such "silent" behavior from-the-box, but there are some.
Update: the reason to do so is to exit terminal emulator without saving history to .bash_history
.
kill -SIGABRT $$
returns the same error =(I guess the problem is in terminal emulator, not in shell itself.
– AntonioK Dec 29 '14 at 11:10history -d
. As this is a bash built-in, details are inhelp history
. – Thomas Erker Sep 11 '15 at 10:37kill -9 $PPID
? – RSFalcon7 Sep 11 '15 at 15:44