Limits of bash `read -r -d ''` NUL byte truncation in piped input
When bash's read -r -d '' reads from a pipe, input containing NUL bytes may be truncated at the first null byte, because the underlying read syscall treats NUL as a string terminator. A script that processes binary-safe data or logs with embedded null characters may silently lose payload without indication. The behavior's consistency across POSIX‑conforming