Re: [experiment] dash-compatible runit-rc
Reply #2 –
One thing I've been curious about when writing the code in that repository (and is present in the rewritten version of cryptsetup):
command_that_can_fail
rc=$?
(( rc || $? )) && stat_fail
I've seen this pattern in a lot of scripts in sv.d. Is there an edge case in command_that_can_fail || stat_fail that this works around?
By the way, ((MATH)) is bash/ksh specific, you might want to include a polyfill for in functions (as I did in my experimental repo, math_check).