mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
dash in all modes, or bash when not invoked in posix mode will issue a "Terminated" message and thus block with our filled pipe, and not fire the trap. I.e. with sh -> dash this test failed, and sh -> bash this test passed (as bash is in POSIX mode in that case). Interestingly this shows the shells have much the same problem with stderr diagnostic side effects that timeout now avoids. * tests/timeout/timeout.sh: Redirect the shell's stderr to /dev/null so we don't care whether it outputs "Terminated" or not. Also change all "sh -c" to "$SHELL -c" for better consistency across all tests.