[haiku-development] Re: Bash and Jobs

> Interestingly, when the shell is "exit"ed, jobs will only be sent a
> SIGHUP,
> if that had explicitly been specified before (via "shopt -s
> huponexit").
> That is normally all jobs will continue to enjoy their good health
> even
> after the terminal has gone.
>
> Personally I find this more than a bit inconsistent and wonder, if we
> want
> to change that behavior. Any opinions?
>

The user might think closing the window is the correct way, but to the
shell it's a horrible death, and not the correct way to exit it. It's
not the same, and those using the shell shall know that.
Also sometimes one starts a terminal to [re]start a gui app, and it's
always a shame to discover closing that terminal killed the gui app you
just started :)

Now you can always put that shopt command somewhere in /etc/profile or
bashrc or whatever.

Btw, we should upgrade to bash3 someday...

François.

Other related posts: