When I'm in the terminal (either iTerm or Terminal.app) and have jobs running in the background, then typing exit
or logout
gives me:
There are stopped jobs.
which is fine and expected. The problem is that if I run exit
or logout
again (and repeatedly), I get the same thing.
isbadawi@astaire:~$ exit
logout
There are stopped jobs.
isbadawi@astaire:~$ exit
logout
There are stopped jobs.
isbadawi@astaire:~$ exit
logout
There are stopped jobs.
isbadawi@astaire:~$ exit
logout
There are stopped jobs.
isbadawi@astaire:~$ exit
logout
There are stopped jobs.
isbadawi@astaire:~$ exit
logout
There are stopped jobs.
isbadawi@astaire:~$ exit
logout
There are stopped jobs.
I've used bash on linux, and the behavior there was for the second invocation of exit
or logout
to go ahead and terminate the stopped jobs. Instead, I have to do this manually. Why is the behavior different, and is there a way to make it the same?
brew install bash;echo /usr/local/bin/bash|sudo tee -a /etc/shells;chsh -s /usr/local/bin/bash
.