I'm familiar with setting simple aliases in my .bashrc, and think it might be capable of doing what I want, but not quite sure how to do it. The desire: always echo $? after a particular program finishes executing. The particular program I want to run this after prints out fairly awkward STDERR messages that look at first glance like an error even upon success. I always echo $? after as a first check before I actually read the stuff, but at least a quarter of the time mistype and lose the echo opportunity. What I'd like to do is set an alias so that when I type
$ foo --option [argument]
It actually does
$ foo --option [argument]
working blah blah blah
$ echo $?
Is this possible?