* tests/tail-2/pipe-f.sh: Close stdout in a subshell
to ensure the current shell isn't impacted. Subsequent
piped commands like `echo foo | blah` were seen to fail
due to the previous closing of stdout.
Reported by Assaf Gordon.
timeout 10 tail -f $mode $fastpoll out | sleep .1 || fail=1
# This would wait indefinitely before v8.28 (until first write)
-returns_ 1 timeout 10 tail -f $mode $fastpoll /dev/null >&- || fail=1
+(returns_ 1 timeout 10 tail -f $mode $fastpoll /dev/null >&-) || fail=1
done
Exit $fail