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 currently 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 on success, one for invalid option names or failed queries, and two for usage errors.

SEE ALSO

rush-builtins(7).