I want to write an alias that's something like:
alias baz="false || echo bar"
(It's not actually
false, it's a command that can fail). However, I want to pass the failed status code through to the next invoker. In other words, here's the current behavior:
$ false; echo $? 1 $ false || echo foo; echo $? 0
I want to do a different operation that has the same behavior in every respect as
false || echo foo, except when I do
echo $? it would return
Note: I expect the
echo foo bit to essentially always succeed.