Closed EdwardOst closed 5 years ago
This has been fixed by @kamalmarhubi in #98. As it is a non-fatal bug, it will be fixed in the next release when the right time comes.
@matejak can you release a new patch version of Argbash? It's still missing this fix.
Yes, I will release 2.8.2 later this month.
Generated argbash script error handling fails when in strict mode with
set -eou pipefail
If you exercise the error path where you forget the value for the myopt1 option as shown below./shell2layer --myopt1 --myopt2
it should print the error
But instead you will get
line 27: $2: unbound variable
I believe the fix is just to provide an empty default for $2 in the die() function
local _ret=$2:-