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

Some modernisations, some corrections/hardening, some pedantry #16

Merged
merged 12 commits into from
Jan 25, 2024

Conversation

dra27
Copy link
Contributor

@dra27 dra27 commented Jan 25, 2024

Addresses the parts of #7 which I was uncertain about reviewing at the time in terms of purpose, rather than shellcheck test number. Today I learned that given:

i=0
FOO=(a b)

both

unset 'FOO[$i]'

and

unset "FOO[$i]"

are in fact equivalent, but given that neither GitHub's nor my editor's syntax highlighting understands that the variable in the first one really is a variable, I went with the second syntax, just for the highlight that $i is not literal.

With this PR, both scripts pass shellcheck 0.9.0.

@dra27 dra27 merged commit b3125cb into metastack:master Jan 25, 2024
1 check passed
@dra27 dra27 deleted the shellcheck branch January 25, 2024 11:40
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.

None yet

1 participant