Bash – Whenever I type some wrong command, the terminal tries to run that command in the background

background-processbashshellterminal

Something strange started happening to my terminal. Whenever I type some wrong command it tries to run that command in the background.

hegeek@colinux: ~# l   
[9]+  Stopped   l  
thegeek@colinux: ~# fdsl  

[10]+  Stopped                 fdsl  

What could be the issue?


EDIT:

After restarting the system the issue is solved. But I am still curious what caused this issue. I think it has to do something with command_not_found_handle shell function. While trying to find the command, it was doing something weird.

Best Answer

That sounds like the command-not-found hook was acting up for some reason. I've had problems with it before, but never could figure out how to fix it :-/.

Related Question