Skip to content
Permalink
Browse files

safer-bash.md: fix a typo in option name. (#3)

  • Loading branch information
php-coder authored and BenTheElder committed Nov 24, 2019
1 parent e459f16 commit b15be928ca6cc9088a0b5c460f1003a9578bbc7e
Showing with 1 addition and 1 deletion.
  1. +1 −1 content/posts/safer-bash.md
@@ -42,7 +42,7 @@ non-zero status (exit code). This provides a basic mechanism to ensure that
scripts fail unless you intended to ignore a failure.
You can still intentionally ignore errors like: `some_failing_command || true`

- `set -o nunset` causes unset variables to be treat as errors and cause an exit.
- `set -o nounset` causes unset variables to be treat as errors and cause an exit.
This will help prevent using variables that were never assigned.

- `set -o pipefail` causes pipelines to retain / set hte last non-zero status.

0 comments on commit b15be92

Please sign in to comment.
You can’t perform that action at this time.