set Options
The options in set Options can be turned on with
the set -arg command. They are all
initially off except where noted. Full names, where listed, are arguments
to set that can be used with set -o. The full names braceexpand, histexpand, history, keyword, and
onecmd are not available in versions of
bash prior to 2.0. Also, in those versions, hashing
is switched with -d.
Table A-6. set options
Option | Full name (-o) | Meaning |
|---|---|---|
| | Export all subsequently defined or modified variables. |
| | The shell performs brace expansion. This is on by default. |
| | Report the status of terminating background jobs immediately. |
| | Don’t allow redirection to overwrite existing files. |
| | Any trap on |
| | Exit the shell when a simple command exits with
nonzero status. A simple command is a command not part of a
|
| Use Emacs-style command-line editing. | |
| | Disable pathname expansion. |
| | Enable ! style history substitution. On by default in an interactive shell. |
| | Enable command history. On by default in interactive shells. |
| | Enable the hashing of commands. |
| | Disallow Ctrl-D to exit the shell. |
| | All arguments in the form of assignment statements are placed in the environment for ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access