Sample Header Ad - 728x90

How to unset SHELLOPTS monitor:notify?

0 votes
1 answer
67 views
I like getting notified immediately when a background process exits. To do that one uses: $ set -b When you do that, it sets the shell option, contained in the BUILTIN variable SHELLOPTS, called "monitor"; it changes from just "monitor" to "monitor:notify". But what if I want to return it to the default status of only giving notification when the shell is about to issue a new prompt? I tried unset with the following result: $ unset -b bash: unset: -b: invalid option unset: usage: unset [-f] [-v] [-n] [name ...] It obviously doesn't work! I dug through the BASH man page and looked under the shopt command but didn't find anything that addressed this, but then perhaps I didn't recognize what I was looking for.
Asked by Richard T (268 rep)
May 26, 2024, 06:50 PM
Last activity: May 27, 2024, 05:40 AM