]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: remove redundant processing in a test
authorPádraig Brady <P@draigBrady.com>
Fri, 9 Jan 2026 14:25:24 +0000 (14:25 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 10 Jan 2026 01:04:33 +0000 (01:04 +0000)
* tests/misc/write-errors.sh: This was a no-op anyway
due to inadequate escaping.  Also document the escaping requirement.

tests/misc/write-errors.sh

index 719b17d685586af647cf4c6858290768b3a4f730..e335e52d6f2e2c4b84ec148cb1f15c3f27d043f3 100755 (executable)
@@ -24,8 +24,9 @@ if ! test -w /dev/full || ! test -c /dev/full; then
   skip_ '/dev/full is required'
 fi
 
-# Writers that may output data indefinitely
-# First word in command line is checked against built programs
+# Writers that may output data indefinitely.
+# First word in command line is checked against built programs.
+# Escapes must be double escaped.
 printf '%s' "\
 cat /dev/zero
 comm -z /dev/zero /dev/zero
@@ -42,7 +43,7 @@ fmt --version; yes | fmt
 fold /dev/zero
 fold -b /dev/zero
 fold -c /dev/zero
-fold --version; yes | tr -d '\\n' | fold
+fold --version; yes | fold
 head -z -n-1 /dev/zero
 join -a 1 -z /dev/zero /dev/null
 nl --version; yes | nl