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

WIP: Bash Strict Mode #520

Closed
wants to merge 14 commits into from
Closed

WIP: Bash Strict Mode #520

wants to merge 14 commits into from

Conversation

Stratus3D
Copy link
Member

Summary

Add Bash strict mode to all Bash script that are not sourced directly by the user.

We can't add Bash script mode to any files the user may source, or may get sourced by any other scripts, as the strict mode settings will leak into other contexts. I've had to make some changes to a few of the tests that emulate a user shell to get around this in the tests.

Fixes: #160, #247

@Stratus3D Stratus3D force-pushed the tb/bash-strict-mode branch from d8f7573 to aa8768c Compare May 11, 2019 21:22
@Stratus3D
Copy link
Member Author

I've got one failing test locally, but nearly all the tests fail on Travis.CI and I'm not sure why.

@Stratus3D
Copy link
Member Author

I still want to add Bash Strict Mode to asdf, but this PR is way too old to use, and #817 takes a more incremental approach. All further discussion should be done on #817.

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.

Use set -o nounset -o pipefail -o errexit on top/in all scripts
1 participant