- mandoclen=`head -n 1 test.mandoc | wc -c`
- nrofflen=`head -n 1 test.nroff | wc -c`
- if cmp -s test.mandoc test.nroff $mandoclen $nrofflen; then
+ l=`wc -l < test.mandoc`
+ head -n `expr $l - 1` test.mandoc | tail -n `expr $l - 2` > test.mandoc_
+ l=`wc -l < test.nroff`
+ head -n `expr $l - 1` test.nroff| tail -n `expr $l - 2` > test.nroff_
+ if cmp -s test.mandoc_ test.nroff_; then