Shell set command

Shell set command

The set command can be used to set/display the options in shell.

-e or -o errexit

Exit immediately if previous command returned a non-zero status.

-x or set -o xtrace

Print trace.

-v or set -o verbose

Print line.

-o vi

Use a vi-style line editing interface.

-o emacs

Use a emacs line editing interface.

References

4.3.1 The Set Builtin

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>