When you have stopped jobs, zsh normally warns you and refuses to exit until you either dispose of the jobs or issue a second consecutive "exit" command. However, examining the list of jobs with the "jobs" command is considered the same as disposing of them, as you presumably know what you're doing if you immediately exit after looking at the list.
This patch eliminates this special interpretation of the "jobs" command in the special case of using "jobs" in your "precmd" function.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
None
When you have stopped jobs, zsh normally warns you and refuses to exit until you either dispose of the jobs or issue a second consecutive "exit" command. However, examining the list of jobs with the "jobs" command is considered the same as disposing of them, as you presumably know what you're doing if you immediately exit after looking at the list.
This patch eliminates this special interpretation of the "jobs" command in the special case of using "jobs" in your "precmd" function.