Each time I touch mrsh' job control code I'm thinking "swapping these two function calls can't possibly matter". Every single time it does.
I should consider job control code as magic incantations you shouldn't change at all.
Or alternatively, add some tests for interactive terminals.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!