Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention 'set -u' and ${arg:?message} #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ernstki
Copy link

@ernstki ernstki commented Oct 18, 2020

I tried to make this as uncontentious as possible, with set -uo pipefail being the "do this 100% of the time by default" advice and set -e being the "but also consider this" choice.

The set -u part should not be controversial. It's use strict for Bash, which would be the default in e.g. Perl and JavaScript if not for concerns of backward compatibility.

But if you feel very, very strongly about having all three of them together (set -euo pipefail), I am happy to defer to your judgment there and amend this PR.

Closes #29 and #37.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using defaults and "${VAR:?}"
1 participant