]> Dogcows Code - chaz/tar/blobdiff - tests/sigpipe.at
tests: fix some issues with signals, timestamps, "test" typo
[chaz/tar] / tests / sigpipe.at
index 9edca77cf13a971b63421c321592ccaf427e97a2..4a3282b4b0872bd28a57c7e8b2a3c0648efaca7a 100644 (file)
@@ -32,7 +32,8 @@ genfile --length 2049 --file third
 
 tar cf archive first second third
 
-tar tf archive | :
+# Discard diagnostics that some shells generate about broken pipes.
+(tar tf archive 2>&3 | :) 3>&2 2>/dev/null
 ],
 [0])
 
This page took 0.021429 seconds and 4 git commands to generate.