Fix hxtool.
authorStefan Weil <weil@mail.berlios.de>
Wed, 1 Jul 2009 21:13:34 +0000 (23:13 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Thu, 2 Jul 2009 17:54:34 +0000 (17:54 +0000)
When converting from hx to texi format, hxtool (or to be
more precise sh which interprets hxtool) used standard
shell expansion of wildcards while writing lines to the
output.

Thus, something like "Password: ********"
looked very different in the generated documentation.

The patch disables this unwanted wildcard expansion.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
hxtool

diff --git a/hxtool b/hxtool
index 885abe222d6408e15c9dcb9ef4c47e68f8890c65..0fdbc641c643033c8d96028b1b02a5f0e6f9deb4 100644 (file)
--- a/hxtool
+++ b/hxtool
@@ -26,10 +26,10 @@ hxtotexi()
             STEXI*|ETEXI*) flag=$(($flag^1))
             ;;
             DEFHEADING*)
-            echo $(expr "$str" : "DEFHEADING(\(.*\))")
+            echo "$(expr "$str" : "DEFHEADING(\(.*\))")"
             ;;
             *)
-            test $flag -eq 1 && echo $str
+            test $flag -eq 1 && echo "$str"
             ;;
         esac
     done