This does not work for me (GNU grep 3.4):
grep -a '[:cntrl:]
does not match the same as grep -a $'\00'
. For example piping in printf "hell0\x0\nworld\n:-)\x0:-(\n"