summaryrefslogtreecommitdiff
path: root/app-text/docbook-sgml-utils/files/docbook-sgml-utils-0.6.14-grep-2.7.patch
blob: 89663829e8b9f3080c589773ab53d40d0ef1e5d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Fix wrong charakter classes no longer missinterpreted by grep-2.7
Michael Weber <xmw@gentoo.org>

--- a/bin/jw.in
+++ b/bin/jw.in
@@ -80,9 +80,9 @@
 SGML_CATALOGS_DIR="/etc/sgml"
 if [ -f "$SGML_CONF" ]
 then
-  RE='^[:space:]*SGML_BASE_DIR[:space:]*=[:space:]*'
+  RE='^[[:space:]]*SGML_BASE_DIR[[:space:]]*=[[:space:]]*'
   SGML_BASE_DIR=`grep $RE $SGML_CONF | sed "s/$RE//"`
-  RE='^[:space:]*SGML_CATALOGS_DIR[:space:]*=[:space:]*'
+  RE='^[[:space:]]*SGML_CATALOGS_DIR[[:space:]]*=[[:space:]]*'
   SGML_CATALOGS_DIR=`grep $RE $SGML_CONF | sed "s/$RE//"`
 fi