Chapter 4: Shell Builtin Commands

60

-n

Read commands but do not execute them; this may be used to check a script for syntax errors. This option is ignored by interactive shells.

-o option-name

Set the option corresponding to option-name: allexport

Same as -a. braceexpand

Same as -B. emacs

Use an emacs-style line editing interface (see Chapter 8

[Command Line Editing], page 101). This also affects the editing interface used for read -e. errexit

Same as -e. errtrace

Same as -E. functrace

Same as -T. hashall

Same as -h. histexpand

Same as -H. history

Enable command history, as described in Section 9.1

[Bash History Facilities], page 133. This option is on by default in interactive shells. ignoreeof

An interactive shell will not exit upon reading EOF. keyword

Same as -k. monitor

Same as -m. noclobber

Same as -C. noexec

Same as -n. noglob

Same as -f. nolog

Currently ignored. notify

Same as -b. nounset

Same as -u. onecmd

Same as -t. physical

Same as -P. pipefail

If set, the return value of a pipeline is the value of the last (rightmost) command to exit with a non-zero status, or zero if all commands in the pipeline exit suc- cessfully. This option is disabled by default.