lint: split ENV_PAIRS into an array in the hook harness #765
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#766 epic: shellcheck passes on every shell script, with no inline disables
sixfold-space/madtea
Reference
sixfold-space/madtea#765
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
hooks/tests/lib-hook-harness.sh:616and:621disable SC2086 inline.gate_execrunsenv $env_pairs bash "$gate", and the unquoted$env_pairsis word-split on purpose intoNAME=VALUEarguments.How
Inside
gate_exec, split the string into an array once withread -ra, then runenv "${pairs[@]}" bash "$gate". The callers keep passing one string.Acceptance