mirror of
https://github.com/obra/superpowers.git
synced 2026-04-22 01:19:04 +08:00
Bash 5.3 has a regression where heredoc variable expansion blocks when content exceeds ~512 bytes. The session_context variable is ~4,500 bytes, causing the SessionStart hook to hang indefinitely on macOS with Homebrew bash 5.3+. Replace cat <<EOF with printf. Tested on Linux (bash 5.2) and Windows (Git Bash 5.2). The hang only affects 5.3+ but printf works correctly on all versions. Based on #572, closes #572. Fixes #571. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>