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, via bash. Arguments are assigned in order to $1, $2, and so on.
Turn off -v and -x, and turn off option processing.
Used as the last option; turn off option processing so that arguments beginning with - are not misinterpreted as options. (For example, you can set $1 to -1.) If no arguments are given after --, unset the positional parameters.
From now on, automatically mark variables for export after defining or changing them.
Report background job status at termination instead of waiting for next shell prompt.
Exit if a command yields a nonzero exit status.
Do not expand filename metacharacters (e.g., * ? [ ]). Wildcard expansion is sometimes called globbing.
Locate and remember commands as they are defined.
Assignment of environment variables (var = value) will take effect regardless of where they appear on the command line. Normally, assignments must precede the command name.
Monitor mode. Enable job control; background jobs execute in a separate process group. -m usually is set automatically.
Read commands, but don’t execute. Useful for checking errors, particularly for shell scripts.
- -o [m]
List shell modes, or turn on mode m. Many modes can be set by other options. The modes can be turned off through the ...