public inbox for docbook-tools-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Martin Sekerák" <antikapitalista1@gmail.com>
To: docbook-tools-discuss@sources.redhat.com
Subject: Error in character class syntax in jw
Date: Sun, 26 Sep 2010 15:41:00 -0000	[thread overview]
Message-ID: <AANLkTim=_OtDSdeWpGpw+KZ-wv-+KUL7H-wUU9k8hzFt@mail.gmail.com> (raw)

Hello,
it seems that there is an error in "jw", when executing (for example):
docbook2html EXAMPLE.sgml
the following error appears:
grep: character class syntax is [[:space:]], not [:space:]
grep: character class syntax is [[:space:]], not [:space:]
jw: There is no frontend called "/docbook/utils-0.6.14/frontends/docbook".
and the command fails, as grep produces nothing that sed could consume
in a satisfactory way.

I suggest that the character class syntax be changed in bin/jw.in,
perhaps like this:

diff --recursive --show-c-function '--unified=3' original/bin/jw.in
fixed/bin/jw.in
--- original/bin/jw.in	2003-04-30 18:21:49.000000000 +0200
+++ fixed/bin/jw.in	2003-04-30 18:21:49.000000000 +0200
@@ -80,9 +80,9 @@ SGML_BASE_DIR="@prefix@/share/sgml"
 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

I hope you can make something out of my description...
What do you think of the idea? Do you also happen to get the same error?

Cheers,
Martin Rapavý

                 reply	other threads:[~2010-09-26 15:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTim=_OtDSdeWpGpw+KZ-wv-+KUL7H-wUU9k8hzFt@mail.gmail.com' \
    --to=antikapitalista1@gmail.com \
    --cc=docbook-tools-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).