About your advice with sleep -- I don't think it would work for the git test. Actually the whole point seems to be that : returns immediately breaking the pipe and hence git should return with exit code 141. Not that I know what exactly is being tested here or why, though I wonder how shell should behave in this case.
-- You received this bug notification because you are a member of mksh Mailing List, which is subscribed to mksh. Matching subscriptions: mkshlist-to-mksh-bugmail https://bugs.launchpad.net/bugs/1532621 Title: Tests in git-2.7.0 fail with mksh R52 Status in mksh: Fix Committed Bug description: Newly released git version 2.7.0 fails to pass tests with most recent release of mksh -- test t0005-signals.sh fails on case 4 and 5: 4: OUT=$( ((large_git; echo $? 1>&3) | :) 3>&1 ) && test "$OUT" -eq 141 5: OUT=$( ((trap "" PIPE; large_git; echo $? 1>&3) | :) 3>&1 ) && test "$OUT" -eq 141 Note that everything works perfectly fine with R51 and ie bash. To manage notifications about this bug go to: https://bugs.launchpad.net/mksh/+bug/1532621/+subscriptions