Don't unnecessarily use printf in wc.test when echo will do.
(And is much faster if your shell doesn't have a builtin printf.)
diff --git a/tests/wc.test b/tests/wc.test
index d227b9c..012bd53 100755
--- a/tests/wc.test
+++ b/tests/wc.test
@@ -25,23 +25,23 @@
if printf "%s" "$LANG" | grep -q UTF-8
then
-printf " " > file1
-for i in $(seq 1 8192)
-do
- printf "ü" >> file1
-done
-testing "-m" "wc -m file1" "8193 file1\n" "" ""
-testing "-m 2" 'cat "$FILES/utf8/test2.txt" | wc -m' "169\n" "" ""
-printf " " > file1
-for i in $(seq 1 8192)
-do
- printf "ü" >> file1
-done
-testing "-m (invalid chars)" "wc -m file1" "8193 file1\n" "" ""
-NOSPACE=1 testing "-mlw" "wc -mlw input" " 1 2 11 input\n" "hello, 世界!\n" ""
+ echo -n " " > file1
+ for i in $(seq 1 8192)
+ do
+ echo -n "ü" >> file1
+ done
+ testing "-m" "wc -m file1" "8193 file1\n" "" ""
+ testing "-m 2" 'cat "$FILES/utf8/test2.txt" | wc -m' "169\n" "" ""
+ echo -n " " > file1
+ for i in $(seq 1 8192)
+ do
+ echo -n "ü" >> file1
+ done
+ testing "-m (invalid chars)" "wc -m file1" "8193 file1\n" "" ""
+ NOSPACE=1 testing "-mlw" "wc -mlw input" " 1 2 11 input\n" "hello, 世界!\n" ""
else
-printf "skipping tests for wc -m"
+ echo "skipping tests for wc -m"
fi
rm file1