Skip to content

Conversation

@Alan-TheGentleman
Copy link
Contributor

Summary

  • Replace declare -A (associative arrays) with temp files for Bash 3.2 compatibility
  • macOS ships with Bash 3.2 by default, which doesn't support associative arrays
  • All 24 unit tests pass with /bin/bash (Bash 3.2)

Changes

  • Use temp directory ($SCOPE_TMPDIR) to store scope data instead of associative array
  • Replace ${var//pattern/replacement} with sed for portability
  • Replace read -ra <<< "$var" with echo | tr | while read

Testing

/bin/bash ./skills/skill-sync/assets/sync_test.sh
# ✅ All 24 tests passed!

macOS ships with Bash 3.2 which doesn't support associative arrays
(declare -A). Replace with temp files for portable scope storage.
@github-actions
Copy link
Contributor

✅ All necessary CHANGELOG.md files have been updated.

@github-actions
Copy link
Contributor

Conflict Markers Resolved

All conflict markers have been successfully resolved in this pull request.

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.

2 participants