Skip to content

fix: make test_serena.sh portable for macOS and Ubuntu#366

Merged
lpcox merged 1 commit intomainfrom
lpcox/test-serena
Jan 19, 2026
Merged

fix: make test_serena.sh portable for macOS and Ubuntu#366
lpcox merged 1 commit intomainfrom
lpcox/test-serena

Conversation

@lpcox
Copy link
Collaborator

@lpcox lpcox commented Jan 19, 2026

  • Replace declare -A associative arrays with helper functions (bash 3.x compat)
  • Add || true to arithmetic expressions to prevent set -e failures
  • Add portability documentation to script header

Fixes compatibility with macOS bash 3.2 which doesn't support associative arrays (bash 4+ feature).

- Replace declare -A associative arrays with helper functions (bash 3.x compat)
- Add || true to arithmetic expressions to prevent set -e failures
- Add portability documentation to script header

Fixes compatibility with macOS bash 3.2 which doesn't support associative
arrays (bash 4+ feature).
@lpcox lpcox merged commit 5654cdd into main Jan 19, 2026
@lpcox lpcox deleted the lpcox/test-serena branch January 19, 2026 18:45
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