set-option

monitor

Enable or disable job control. A monitor flag does not imply a controlling terminal.

Formal Syntax & Structure

bash syntaxbash
set -m; set +m

Return Value

shell option

Enable or disable job control. A monitor flag does not imply a controlling terminal.

Working Example

Example Snippetbash
set +m[[ $- != *m* ]] && printf 'monitor off\n'set -m[[ $- == *m* ]] && printf 'monitor on\n'set +m
Bash Reference