[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 19/20: [hdbtl] Robustify test against crazy pathnames.
From: |
G. Branden Robinson |
Subject: |
[groff] 19/20: [hdbtl] Robustify test against crazy pathnames. |
Date: |
Fri, 9 Nov 2018 18:39:42 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit b1db7f4bd7df1005d9d385606229356f3ead0d24
Author: G. Branden Robinson <address@hidden>
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 <address@hidden>
---
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.
address@hidden@
address@hidden@
+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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 19/20: [hdbtl] Robustify test against crazy pathnames.,
G. Branden Robinson <=