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 ... |
Get bash Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.