Sometimes the exit status of the shell is what is interesting, and sometimes a better question to answer with the exit status is "was the attach successful". This latter question can use useful if you want to automatically run shpool attach when you shell into a remote machine and display an error if it is not successful. Threading the error status back down causes problems for these sorts of setups.
I'm not sure what to call the flag. Maybe --error-status-mode attach, where the options are attach and shell (with shell as the default to maintain current behavior).
Sometimes the exit status of the shell is what is interesting, and sometimes a better question to answer with the exit status is "was the attach successful". This latter question can use useful if you want to automatically run
shpool attach
when you shell into a remote machine and display an error if it is not successful. Threading the error status back down causes problems for these sorts of setups.I'm not sure what to call the flag. Maybe
--error-status-mode attach
, where the options areattach
andshell
(with shell as the default to maintain current behavior).