bash-ini-parser
bash-ini-parser copied to clipboard
Bash Set
Fix for use with "set -Eeuo pipefail", not working if is set "-eu" on main script
This is the what, but you don't explain the why.
First open an issue to discuss why we need this and how it should be implemented.
Always unconditional is a no go
This is the what, but you don't explain the why.
First open an issue to discuss why we need this and how it should be implemented.
Always unconditional is a no go
hi, the documentation is here, I edited the script manually to make it work inside another bash application; there are also other errors but they are not important, since everything works. Thansk.
Describe that use case would be more interesting.
Still not sure why you need to fail as soon as possible.
I agree with the author. Without adding these fixes, using "set -Eeuo pipefail" in a script that uses cfg_parser causes an error. To be precise, the script terminates due to receiving a signal.
So finally, I'm documenting what this issue is about.
http://redsymbol.net/articles/unofficial-bash-strict-mode/
But this PR is about add set -eu
. Then possible use case is your example on #43. I suggest to work on a test case that shows a fail fixed with that setup.
I will take a look myself later