GNU bash, version 4.3.42(1)-release
Trying to deliminate on a null character, but bash doesn't seem to keep the null character in a variable.
$ echo -e 'hello\0goodbye' > testlist
$ cat testlist | cut -d '' -f1
hello
$ foobar=$(echo -e 'hello\0goodbye'); echo "$foobar" | cut -d '' -f1
hellogoodbye
Is there something I'm doing wrong?