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

Style refactor: checking if an array is set/unset #387

Open
andyneff opened this issue Oct 12, 2021 · 0 comments
Open

Style refactor: checking if an array is set/unset #387

andyneff opened this issue Oct 12, 2021 · 0 comments
Labels

Comments

@andyneff
Copy link
Member

We currently use [ " ""${array[@]+set}" = " set" ] to check if an array is set

[ -n "${array[*]+set}" ] is simpler and more in line with how we check normal variables, we should switch to that

@andyneff andyneff added the style label Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant