Subject: Re: pkg/20908: bash crach when killing some process
To: None <firstname.lastname@example.org>
From: Soren Jacobsen <email@example.com>
Date: 03/27/2003 10:23:22
On Thu, Mar 27, 2003 at 10:14:10AM -0800, firstname.lastname@example.org wrote:
> In an xterm (or a konsole, gnome-terminal, etc) promp, just enter the
> folowing command
> % exec sort
> and after kill it with ctrl+c. The whole shell (and the xterm) is killed.
This is not a bug. Read the man page for bash or ksh or sh or csh,
probably. exec simply executes the command, _without_ forking. So your
shell process is replaced with the new exec'd process, and when it
exits, your original shell is no more.