mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
echo interprets escape sequences and flags (e.g. -e, -n) in some shells, which can corrupt or truncate the hook event JSON before it reaches grep. printf '%s' passes the value as a plain string with no interpretation, eliminating any risk of mishandled special chars. Co-Authored-By: Claude Code <noreply@anthropic.com>