System Grab Bag

View all TLDR pages from common (or from all pages)

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
  • Show help for the command:
    help shopt

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.