aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2025-09-17 21:33:47 +0100
committerPádraig Brady <P@draigBrady.com>2025-09-17 21:37:35 +0100
commit5662192f391fd9c54c80aa992aba355aca10760e (patch)
tree3be8af0153c004580692f7137712522279114fae /tests
parentcksum,wc: inspect GLIBC_TUNABLES on all architectures (diff)
downloadcoreutils-5662192f391fd9c54c80aa992aba355aca10760e.tar.gz
coreutils-5662192f391fd9c54c80aa992aba355aca10760e.zip
tests: write-errors.sh: avoid portability issue with dash
* tests/misc/write-errors.sh: Use printf rather than echo since the echo builtin in dash will interpret backslashes. * tests/misc/read-errors.sh: Likewise for consistency.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/read-errors.sh2
-rwxr-xr-xtests/misc/write-errors.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc/read-errors.sh b/tests/misc/read-errors.sh
index f491b905e..0a5f7d825 100755
--- a/tests/misc/read-errors.sh
+++ b/tests/misc/read-errors.sh
@@ -20,7 +20,7 @@
! cat . >/dev/null 2>&1 || skip_ "Need unreadable directories"
-echo "\
+printf '%s' "\
basenc --base32 .
basenc -d --base64 .
cat .
diff --git a/tests/misc/write-errors.sh b/tests/misc/write-errors.sh
index 34bed5dfc..b30f4f6bd 100755
--- a/tests/misc/write-errors.sh
+++ b/tests/misc/write-errors.sh
@@ -25,7 +25,7 @@ fi
# Writers that may output data indefinitely
# First word in command line is checked against built programs
-echo "\
+printf '%s' "\
cat /dev/zero
comm -z /dev/zero /dev/zero
cut -z -c1- /dev/zero