Skip to content

fix(app): ignore blank environment config bindings - #414

Merged
codeforester merged 1 commit into
mainfrom
bug/409-20260904-lib-app-sh-base-app-config-load-treats-a-set-but-empty-env-v
Sep 3, 2026
Merged

fix(app): ignore blank environment config bindings#414
codeforester merged 1 commit into
mainfrom
bug/409-20260904-lib-app-sh-base-app-config-load-treats-a-set-but-empty-env-v

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

Treat bound environment variables with empty values as unset so they do not erase valid project, user, or default configuration.

Issue

Fixes #409

Validation

  • bats lib/bash/app/tests/lib_app.bats (21/21)
  • env -u BASE_HOME BASE_CACHE_DIR=/private/tmp/base-bash-libs-409 ./tests/validate.sh (616/616 plus all repository contracts)

Compatibility and security

Non-empty environment overrides and all lower-precedence sources retain their documented behavior; blank bindings now fail open to the next source.

@codeforester
codeforester merged commit fb5e29d into main Sep 3, 2026
11 checks passed
@codeforester
codeforester deleted the bug/409-20260904-lib-app-sh-base-app-config-load-treats-a-set-but-empty-env-v branch September 3, 2026 20:44
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.

lib_app.sh: base_app_config_load treats a set-but-empty env var as an explicit override, outranking config files

1 participant