12

I've seen bash shell scripts which have this before some other commands

set -u

What does it do? I can't seem to find any documentation on it.

  • 1
    have a look at help set – suspectus Oct 3 '19 at 20:05
  • "man bash" and see the section under "set" for more information. – Aaron D. Marasco Oct 3 '19 at 22:13
17
-u  Treat unset variables as an error when substituting.

You can give this page a try :

Set Man Page

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.