summaryrefslogtreecommitdiff
path: root/tests/misc/od-multiple-t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/od-multiple-t')
-rwxr-xr-xtests/misc/od-multiple-t10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/misc/od-multiple-t b/tests/misc/od-multiple-t
index 1f607bc87..049273cdf 100755
--- a/tests/misc/od-multiple-t
+++ b/tests/misc/od-multiple-t
@@ -23,17 +23,17 @@ print_ver_ od
# Choose 48 bytes for the input, as that is lcm for 1, 2, 4, 8, 12, 16;
# we don't anticipate any other native object size on modern hardware.
seq 19 > in || framework_failure_
-test `wc -c < in` -eq 48 || framework_failure_
+test $(wc -c < in) -eq 48 || framework_failure_
list='a c dC dS dI dL oC oS oI oL uC uS uI uL xC xS xI xL fF fD fL'
for format1 in $list; do
for format2 in $list; do
od -An -t${format1}z -t${format2}z in > out-raw || fail=1
- linewidth=`head -n1 out-raw | wc -c`
- linecount=`wc -l < out-raw`
- echo $format1 $format2 `wc -c < out-raw` >> out
- echo $format1 $format2 `expr $linewidth '*' $linecount` >> exp
+ linewidth=$(head -n1 out-raw | wc -c)
+ linecount=$(wc -l < out-raw)
+ echo $format1 $format2 $(wc -c < out-raw) >> out
+ echo $format1 $format2 $(expr $linewidth '*' $linecount) >> exp
done
done