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:
@@ -20,7 +20,7 @@
|
||||
|
||||
! cat . >/dev/null 2>&1 || skip_ "Need unreadable directories"
|
||||
|
||||
echo "\
|
||||
printf '%s' "\
|
||||
basenc --base32 .
|
||||
basenc -d --base64 .
|
||||
cat .
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user