Skip to content

Conversation

@neechbear
Copy link

Explicitly assigned positional arguments in some functions to named variables, defaulting to an empty string if undefined. This aides readability in some places, and prevents errors with omission of optional arguments when using bash's "set -u" / nounset shell attribute.

Added some missing quotes that would have caused syntax errors or unexpected argument shifts with unset variables.

Explicitly added assignment of empty lists () on initial array and associative array declaration to avoid unexpected behaviour with slightly older bash < 4.3 versions.

Removed explicit set -u and set +u statements as they have no business being in a library. ;-)

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.

1 participant