summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorjesse <jesse@magic-kingdom>2026-03-15 19:14:34 +0000
committerjesse <jesse@magic-kingdom>2026-03-15 19:14:34 +0000
commit537ec640fd8fd47fc0ff596abeb445d1515bd2bd (patch)
treeb9198d81a535942ca6ac72b8187c0c23f6e79b2f /docs
parentc5e953831186a59c26f3e200aba0f8099e160a76 (diff)
fix(hooks): replace heredoc with printf to fix bash 5.3+ hang
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>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions