spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

Fix macOS/BSD Bash 3.2 compatibility issues in shell scripts

Open aoright opened this issue 5 months ago • 0 comments

This resolves 19 test failures when running the test suite on macOS. There were two main issues: 1. Syntax errors in update-agent-context.sh caused by nested double-quoted command substitutions with tr '' character escaping, causing mismatched single quotes in Bash 3.2. 2. Bad substitutions in feature-naming scripts caused by using Bash 4.0+ uppercase parameter expansion ${word^^} which is unsupported in macOS default Bash 3.2. The fix replaces the expansion with standard tr '[:lower:]' '[:upper:]' and cleans up nested double-quoted assignments.

aoright avatar Jun 30 '26 07:06 aoright