Skip to main content
Fixed command to actually work, so it doesn't pick up stuff like `huponexit off`
Source Link

From the man pagethe man page:

shopt
...With no options, or with the -p option, a list of all settable options is displayed, with an indication of whether or not each is set.
shopt | grep on"on$"

will print a list of all the enabled options.

From the man page:

shopt
...With no options, or with the -p option, a list of all settable options is displayed, with an indication of whether or not each is set.
shopt | grep on

will print a list of all the enabled options.

From the man page:

shopt
...With no options, or with the -p option, a list of all settable options is displayed, with an indication of whether or not each is set.
shopt | grep "on$"

will print a list of all the enabled options.

Source Link
jasonwryan
  • 74.8k
  • 35
  • 204
  • 230

From the man page:

shopt
...With no options, or with the -p option, a list of all settable options is displayed, with an indication of whether or not each is set.
shopt | grep on

will print a list of all the enabled options.