shopt - inspect or update compatibility shell options.
shopt [option ...] shopt -p [option ...] shopt -q option ... shopt -s option ... shopt -u option ...
shopt inspects or updates compatibility shell options. Rush models expand_aliases. Without operands, shopt lists all modeled options and shopt -p prints reusable commands.
-pshopt -s name or shopt -u name form.-q-s-u--Zero when every listed or queried option is enabled, one when any is disabled or invalid, and two for usage errors. Setting or unsetting valid options succeeds regardless of their previous state.