$ a=$(printf '\0\n')
-bash: 警告: command substitution: ignored null byte in input
っていうエラーが出るんだけどさ、これだとでない
printf '\0\n' | read a

なんでreadだとこのエラーはださないんだろう?
誰か理由わかる?