Skip to content

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

Merged
dra27 merged 12 commits intometastack:masterfrom
dra27:shellcheck
Jan 25, 2024
Merged

Some modernisations, some corrections/hardening, some pedantry#16
dra27 merged 12 commits intometastack:masterfrom
dra27:shellcheck

Conversation

@dra27
Copy link
Copy Markdown
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
@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.

1 participant