From 0c2f2030dae091b934f753f0ae920cbb7b06434d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 23 May 2020 00:56:48 -0500 Subject: Ahem: have the backgrounding test actually background. Point is to make sure the consumer waits for all output, not for process exit. --- tests/sh.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sh.test b/tests/sh.test index 81040485..429b7706 100644 --- a/tests/sh.test +++ b/tests/sh.test @@ -161,7 +161,7 @@ testing "{5..1..2}" "echo {5..1..2}" "5 3 1\n" "" "" testing "{a..z..-3}" "echo {a..z..-3}" "a d g j m p s v y\n" "" "" testing 'background pipe block' \ - 'if true; then { sleep .25;bzcat "$FILES"/blkid/ntfs.bz2; }; fi | wc -c' \ + 'if true; then { sleep .25;bzcat "$FILES"/blkid/ntfs.bz2; }& fi | wc -c' \ '8388608\n' '' '' #$ IFS=x X=xyxz; for i in abc${X}def; do echo =$i=; done -- cgit v1.2.3