@kimapr @domi @ar @multisn8 @navi > POSIX sh doesn't even have a way to read a NUL-terminated string from a stream
IIRC while IFS='' read do; …; done should be able to deal with null-separation fine and POSIX.1-2024 added null handling to several utilities.