On Sun, Dec 14, 2025 at 09:17:37 -0000, [email protected] wrote:
>         Add mapfile/readarray a -z streaming mode that reads NUL-delimited
> input or emits NULs on demand without buffering the whole array.

This already exists: mapfile -d '' will use NUL bytes as the record
terminators instead of newlines.  For output, you can use

    printf '%s\0' "${array[@]}"

I don't know what you mean by "without buffering the whole array".

I didn't bother trying to read the rest of your post.

Reply via email to