# PS1="\$? prompt \$ " 0 prompt $ function foo() { echo "foo"; return 1; } 0 prompt $ foo foo 1 prompt $