Well, as I showed in my other post, sudo does return the exit status of the command it runs.
Unfortunately, the case where the command returns 1 seems to be indistinguishable from the case where sudo returns 1. I guess that little bit of ambiguity could be a big bummer. You might be able to get around it on a case by case basis by using wrappers for your commands.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: Re: Re: Re: Backticks, $?, and Sudo
by sauoq
in thread Backticks, $?, and Sudo
by ignatz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |