What does echo $? print in default bash?
false | true echo $?
011272
A pipeline's status is that of its last command;
Play Linux CLI ▸
set -o pipefail would make it report the failure (1).