$ ./guess_the_languageLinux CLI
Linux CLI · hard · #26

What does echo $? print in default bash?

false | true
echo $?
  1. 0
  2. 1
  3. 127
  4. 2
A pipeline's status is that of its last command; set -o pipefail would make it report the failure (1).
Play Linux CLI ▸