SHOPT(1)

NAME

shopt - inspect or update compatibility shell options.

SYNOPSIS

shopt [option ...]
shopt -p [option ...]
shopt -q option ...
shopt -s option ...
shopt -u option ...

DESCRIPTION

shopt inspects or updates compatibility shell options. Rush models expand_aliases. Without operands, shopt lists all modeled options and shopt -p prints reusable commands.

OPTIONS

-p
Print settings in reusable shopt -s name or shopt -u name form.
-q
Query options silently. The status is non-zero if any named option is disabled or invalid.
-s
Enable the named options.
-u
Disable the named options.
--
End option parsing.

EXIT STATUS

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.

SEE ALSO

rush-builtins(7).