On Mon, Oct 10, 2016 at 04:48:53PM +0000, Clint Adams wrote: > > I'd prefer run-parts to return the highest exitcode of the scripts it > > ran. Diff below works for me (it it against 4.4 in stable, but source of > > 4.8 is no different in this regards). > > That seems like an odd choice for default behavior.
$?!=0 means something went wrong. Currently $? always equals 1 and the only way to determine what went wrong is parsing text output. Having an exitcode >1 doesn't have any impact (unless someone made the decision to check for $?==1 instead of $?!=0 (which clashes with any other command that has multiple failure modes)). So, I was suprised to see the current behavior, but is you want to have absolute backwards compat. this might be optional with some param.

