mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-11-03 12:33:15 +00:00
find -print0 already delimits with NUL, but the exec still ran under a TTY, whose onlcr translation rewrites every \n in the stream to \r\n — including a \n that is part of a filename — so a file literally named with a newline was stat'd under the mangled name and reported unreadable. Run the exec without a TTY and demux the resulting multiplexed stdout/stderr stream by hand (no new dependency), so filename bytes reach the parser untouched. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>