diff --git a/Shell/Tests/sigpipe.sh b/Shell/Tests/sigpipe.sh index e24fd731fb..1866b506ba 100644 --- a/Shell/Tests/sigpipe.sh +++ b/Shell/Tests/sigpipe.sh @@ -5,9 +5,7 @@ # created. rm -f sigpipe.sh.out -# FIXME: It'd be nice if there was a way to create a subshell that makes -# fewer assumptions about cwd and the build directory name. -Build/Meta/Lagom/shell -c 'echo foo && echo bar && echo baz > sigpipe.sh.out' | head -n 1 > /dev/null +{ echo foo && echo bar && echo baz > sigpipe.sh.out } | head -n 1 > /dev/null # Failing commands don't make the test fail, just an explicit `exit 1` does. # So the test only fails if sigpipe.sh.out exists (since then `exit 1` runs),