[root@server ~]# bash << eof> cat adsfasdf> echo $?> eofcat: adsfasdf: No such file or directory0Could anyone please explain why it is returning exit status 0 instead of 1?
echo $? returning 0 instead of 1
bash;shell script