From 67840a5c3fe9de2a7313787e34f67017397a8cbe Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Wed, 28 Sep 2016 08:29:44 +0100 Subject: [PATCH] shopt: add page (#1033) --- pages/common/shopt.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/shopt.md diff --git a/pages/common/shopt.md b/pages/common/shopt.md new file mode 100644 index 000000000..5e1d13599 --- /dev/null +++ b/pages/common/shopt.md @@ -0,0 +1,24 @@ +# 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. + +- 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`