Chet Ramey wrote:
"Nathan Coulter" <[EMAIL PROTECTED]> writes:
read -d $'\0' will do most of what you want, with one limitation. The
^^^^^^^^
This is actually equivalent to read -d ''.
So, to recap, the way to read null-delimited data is:
printf 'hello\0there' | { while read -d ''; do echo $REPLY ; done ; echo
$REPLY ; }
The final reply picks up whatever remains after th last $'\0'.
--
Nathan "pooryorick" Coulter
_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash