1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 10:51:48 +02:00

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.
This commit is contained in:
Pádraig Brady
2025-09-17 21:33:47 +01:00
parent 2b59958537
commit 5662192f39
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
! cat . >/dev/null 2>&1 || skip_ "Need unreadable directories"
echo "\
printf '%s' "\
basenc --base32 .
basenc -d --base64 .
cat .

View File

@@ -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