{
test -z "$pfx" || echo "$pfx"
dd if=/dev/zero bs=1048576 count=$cnt 2>/dev/null |
- tr '[\0]' '[g]'
- } | ./test-sha1
+ perl -pe 'y/\000/g/'
+ } | ./test-sha1 $cnt
`
if test "$expect" = "$actual"
then
{
test -z "$pfx" || echo "$pfx"
dd if=/dev/zero bs=1048576 count=$cnt 2>/dev/null |
- tr '[\0]' '[g]'
+ perl -pe 'y/\000/g/'
} | sha1sum |
sed -e 's/ .*//'
`