The ''shopt'' builtin manages [[internals:shell_options | shell options]], a set of boolean (''on''/''off'') configuration variables that control the behaviour of the shell.
As noted above, if only ''-s'' or ''-u'' are given without any option names, only the currently enabled (''-s'') or disabled (''-u'') options are printed.
==== Exit code ====
When listing options, the exit code is ''TRUE'' (0), if all options are enabled, ''FALSE'' otherwise.
When setting/unsetting an option, the exit code is ''TRUE'' unless the named option doesn't exitst.