gbranden pushed a commit to branch master
in repository groff.

commit b1db7f4bd7df1005d9d385606229356f3ead0d24
Author: G. Branden Robinson <[email protected]>
Date:   Fri Nov 9 18:26:47 2018 -0500

    [hdbtl] Robustify test against crazy pathnames.
    
        * contrib/hdtbl/examples/test-hdtbl.sh.in: Quote expansions of
        variables that are under external control; specifically, the
        Automake variables @abs_top_builddir@ and @GHOSTSCRIPT@ could
        conceivably have space characters in them on slap-happy systems.
        Had we been wiser, we'd all be using descendants of the rc shell
        now...
    
    Signed-off-by: G. Branden Robinson <[email protected]>
---
 contrib/hdtbl/examples/test-hdtbl.sh.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/hdtbl/examples/test-hdtbl.sh.in 
b/contrib/hdtbl/examples/test-hdtbl.sh.in
index 9313506..915dfb9 100644
--- a/contrib/hdtbl/examples/test-hdtbl.sh.in
+++ b/contrib/hdtbl/examples/test-hdtbl.sh.in
@@ -21,14 +21,14 @@
 # Test generated files 'font_n.ps' and 'font_x.ps'.  Both should have
 # 38 pages.
 
-builddir=@abs_top_builddir@
-gs_program=@GHOSTSCRIPT@
+builddir="@abs_top_builddir@"
+gs_program="@GHOSTSCRIPT@"
 ret=0
 # $1 file, $2 expected number of lines
 check_number_pages()
 {
     echo "Checking $1"
-    res=`$gs_program -o /dev/null/ -sDEVICE=bbox $1 2>&1 | grep 
HiResBoundingBox | wc -l`
+    res=`$gs_program -o /dev/null/ -sDEVICE=bbox "$1" 2>&1 | grep 
HiResBoundingBox | wc -l`
     if test $res != $2; then
         echo "  Error: expected $2 pages, found $res pages"
         ret=255

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to