On Mon, Apr 25, 2016 at 12:05:34PM -0300, Paulo Bardes wrote: > $ echo | echo $(sleep 5) # ^Z and then bg to reproduce > > If you just let it run everything is fine, but the weird thing is when you > stop > it and resume in background bash will quit when the command finishes.
Confirmed with bash 4.3.39 and bash 4.4-rc1 on HP-UX 10.20.