summaryrefslogtreecommitdiffhomepage
path: root/tests/scripts/bigdata.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts/bigdata.sh')
-rw-r--r--tests/scripts/bigdata.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/scripts/bigdata.sh b/tests/scripts/bigdata.sh
index 0b012d9..58410e1 100644
--- a/tests/scripts/bigdata.sh
+++ b/tests/scripts/bigdata.sh
@@ -10,8 +10,8 @@ printf '%s\n' "$big" | cksum | cut -d' ' -f1 >sum3
cmp -s sum1 sum3 && echo "command substitution intact"
n=0; while read -r a b c; do n=$((n + c)); done <data; echo "sum: $n"
printf '%s\n' "$big" | while read -r a b c; do :; done; echo "read loop: $a"
-x=$(printf '%070000d' 0 | wc -c); echo "70000 bytes: $x" | tr -s ' '
-y=$(printf '%070000d' 0 | tr 0 x | tr x y | wc -c); echo "through tr: $y" | tr -s ' '
+x=$(printf '%070000d' 0 | wc -c | tr -d ' '); echo "70000 bytes: $x" | tr -s ' '
+y=$(printf '%070000d' 0 | tr 0 x | tr x y | wc -c | tr -d ' '); echo "through tr: $y" | tr -s ' '
printf '%0100000d\n' 0 | { read -r l; echo "${#l}"; }
cat <<EOF2 | wc -c | tr -d ' '
$big