The 'set' Builtin

In this lesson you will become familiar with the `set` builtin, which allows you to manipulate these options within your scripts. You will cover the 'set' builtin, what POSIX is, and some useful options to set when scripting.

How Important is this Lesson?

When using bash it is very important to understand what its options are, how to set them, and how this can affect the running of your scripts.

Setting options is not absolutely core material, but once you’ve used bash for a while, understanding them becomes important. It’s also good revision material for some of the concepts covered previously regarding exported vs. non-exported variables.

Running set

Start by running set on its own:

Get hands-on with 1200+ tech skills courses.