Skip to content

Harden named-output helper locals#138

Merged
codeforester merged 1 commit into
mainfrom
bug/137-20260708-named-output-shadowing
Jul 8, 2026
Merged

Harden named-output helper locals#138
codeforester merged 1 commit into
mainfrom
bug/137-20260708-named-output-shadowing

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • Harden named-output helpers so caller variables such as result_name, temp_path, options_name, and result_var are not shadowed by helper-local variables.
  • Add regression coverage across std, string, arg, git, and GitHub helper APIs.
  • Document the release-worthy fix in CHANGELOG.md.

Validation

  • bats lib/bash/str/tests/lib_str.bats lib/bash/std/tests/lib_std.bats lib/bash/git/tests/lib_git.bats lib/bash/gh/tests/lib_gh.bats lib/bash/arg/tests/lib_arg.bats
  • git diff --check
  • ./tests/validate.sh

Fixes #137

@codeforester codeforester marked this pull request as ready for review July 8, 2026 17:20
@codeforester codeforester merged commit e0deac0 into main Jul 8, 2026
2 checks passed
@codeforester codeforester deleted the bug/137-20260708-named-output-shadowing branch July 8, 2026 17:21
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.

Harden named-output helpers against local variable shadowing

1 participant