Size: 314
Comment:
|
Size: 1144
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
These options are set with the `shopt` builtin. | A POSIX compliant shell can be configured with the `set` and `unset` [[Bash/BuiltinCommands#Set]] builtins. To inspect the enabled options, use the `$SHELLOPTS` [[Bash/ShellVariables#Not_Useful|shell variable]]. `bash(1)` expands on the set of configuration options. These options are set with the `shopt` builtin. To inspect the enabled options, use the `$BASHOPTS` [[Bash/ShellVariables#Not_Useful|shell variable]]. |
Line 11: | Line 13: |
== Compatibility Mode == | == Compatibility Levels == |
Line 13: | Line 15: |
`compat31` `compat32` `compat40` `compat41` `compat42` `compat43` `compat44` |
`bash(1)` version 4.0 introduced '''compatibility levels''', wherein the behavior of the shell are modified. {{{ shopt -e compat31 }}} The modes available through the `shopt` [[Bash/BuiltinCommands#ShOpt|builtin]] are: * `compat31` * `compat32` * `compat40` * `compat41` * `compat42` * `compat43` * `compat44` A shell only has one compatibility level, so each mode is mutually exclusive. From `bash(1)` 4.3+, use of the `$BASH_COMPAT` [[Bash/ShellVariables#Compatibility_Level|shell variable]] is preferred. |
Bash Shell Options
A POSIX compliant shell can be configured with the set and unset Bash/BuiltinCommands#Set builtins. To inspect the enabled options, use the $SHELLOPTS shell variable.
bash(1) expands on the set of configuration options. These options are set with the shopt builtin. To inspect the enabled options, use the $BASHOPTS shell variable.
Compatibility Levels
bash(1) version 4.0 introduced compatibility levels, wherein the behavior of the shell are modified.
shopt -e compat31
The modes available through the shopt builtin are:
compat31
compat32
compat40
compat41
compat42
compat43
compat44
A shell only has one compatibility level, so each mode is mutually exclusive.
From bash(1) 4.3+, use of the $BASH_COMPAT shell variable is preferred.
Extended Debugging Mode
extdebug