mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-23 15:44:13 +02:00
shopt: add page (#1033)
This commit is contained in:
parent
190f8bc5b1
commit
67840a5c3f
1 changed files with 24 additions and 0 deletions
24
pages/common/shopt.md
Normal file
24
pages/common/shopt.md
Normal file
|
@ -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`
|
Loading…
Add table
Reference in a new issue