1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 21:35:24 +02:00
tldr/pages/common/shopt.md
Vitor Henrique 61405c6e0e
pages*: fix small typos (#11850)
* pages*: fix small typos

* pages/*: make help and version commands consistent

* pages/*: follow "path/to/file" pattern

* nop: generic display help wording
2023-12-27 12:11:30 +05:30

628 B

shopt

Manage Bash shell options: variables (stored in $BASHOPTS) that control behavior specific to the Bash shell. Generic POSIX shell variables (stored in $SHELLOPTS) are managed with the set command instead. More information: https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html.

  • List of all settable options and whether they are set:

shopt

  • Set an option:

shopt -s {{option_name}}

  • Unset an option:

shopt -u {{option_name}}

  • Print a list of all options and their status formatted as runnable shopt commands:

shopt -p

  • Display help for the command:

help shopt