]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sun, 14 Nov 2004 11:08:22 +0000 (11:08 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 14 Nov 2004 11:08:22 +0000 (11:08 +0000)
tests/misc/close-stdout

index 4bdbbcb1dbf3847817687094b4a3020747a0b048..c70b7fc5426b4c0e2e0c497df8af196a22a2c6b5 100755 (executable)
@@ -26,7 +26,8 @@ export PATH
 
 fail=0
 
-# Ensure these exit successfully, even though stdout is closed.
+# Ensure these exit successfully, even though stdout is closed,
+# because they generate no output.
 touch a
 cp a b >&- || fail=1
 test -f b || fail=1
@@ -41,7 +42,8 @@ sleep 0 >&- || fail=1
 $pwd/../../src/true >&- || fail=1
 $pwd/../../src/printf '' >&- || fail=1
 
-# Ensure these fail, because stdout is closed.
+# Ensure these fail, because stdout is closed and they *do*
+# generate output.
 $pwd/../../src/printf 'foo' >&- 2>/dev/null && fail=1
 cp --verbose a b >&- 2>/dev/null && fail=1