diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-01-24 23:33:54 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-02-01 21:46:27 +0000 |
commit | 8a6117a22a7d01eeb5adc63d3152acf435cd3176 (patch) | |
tree | 121c3fa707d28110e704dd6fd87cff985a5616a8 /t/byte-range-common.sh | |
parent | 0ba6fc3c30b9cf530faf7fcf5ce7be519ec13fe7 (diff) | |
download | rainbows-8a6117a22a7d01eeb5adc63d3152acf435cd3176.tar.gz |
On FreeBSD 9.0, "wc -c" emits leading whitespace, so filter it through tr -d '[:space:]' to eliminate it.
Diffstat (limited to 't/byte-range-common.sh')
-rw-r--r-- | t/byte-range-common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/byte-range-common.sh b/t/byte-range-common.sh index ba05864..2c12a8b 100644 --- a/t/byte-range-common.sh +++ b/t/byte-range-common.sh @@ -1,5 +1,5 @@ t_begin "byte-range setup vars" && { - random_blob_size=$(wc -c < random_blob) + random_blob_size=$(count_bytes < random_blob) rb_1=$(( $random_blob_size - 1 )) range_head=-r-365 range_tail=-r155- |