Follow-up Comment #7, bug #66479 (group groff): Instead, I fount the following sh arithmetic expression to work:
git diff diff --git a/contrib/hdtbl/examples/test-hdtbl.sh.in b/contrib/hdtbl/examples/test-hdtbl.sh.in index 3b5088db6..097b96640 100644 --- a/contrib/hdtbl/examples/test-hdtbl.sh.in +++ b/contrib/hdtbl/examples/test-hdtbl.sh.in @@ -44,7 +44,7 @@ check_number_pages() res=$("$gs_program" -o /dev/null/ -sDEVICE=bbox "$1" 2>&1 \ | grep HiResBoundingBox | wc -l) # macOS `wc` prefixes the line count with spaces. Get rid of them. - res=$(expr "$res" + 0) || exit 99 + res=$((res + 0)) || exit 99 if [ "$res" != $2 ] then Maybe that would be portable? _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66479> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature