options arg1 arg2 …]
With no arguments, set
prints the values of all variables known to the current shell.
Options can be enabled (
-option) or disabled
(+option). Options can also be set when the
shell is invoked. (See the earlier section Invoking the Shell.) Arguments are assigned in order
From now on, automatically mark variables for export after defining or changing them.
Print job completion messages as soon as jobs terminate; don't wait until the next prompt.
Enable brace expansion. On by default.
Prevent overwriting via
> redirection; use
>| to overwrite files.
Exit if a command yields a nonzero exit status. The
ERR trap executes before
the shell exits.
Cause shell functions, command substitutions, and
subshells to inherit the
Ignore filename metacharacters (e.g.,
* ? [ ]).
Locate commands as they are defined. On by default. See hash.
Enable csh-style history substitution. On by default.
Assignment of environment variables (var=value) takes effect regardless of where they appear on the command line. Normally, assignments must precede the command name.
Enable job control; background jobs execute in a
separate process group.
-m is usually set
Read commands but don't execute; useful for checking syntax. The shell ignores this option if interactive.
With mode, disable the given
shell option. Plain
+o prints the settings of all the current options. This is in a form that can be reread by ...