shopt

The bash builtin that switches optional shell behaviours on and off, such as globstar or nullglob.

In more detail

shopt -s name sets an option and shopt -u name unsets it. These options are separate from the ones set changes, such as errexit.

Related terms

Taught in

References