Skip to contentSkip to conversation

Fix hxtool.

PATCH New Stefan Weil 1 participant 1 message Jul 1, 2009 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 Fix hxtool.

In reply to a message not in the archive

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.

---
 hxtool |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
hxtool +2 -2
index 885abe2..0fdbc64 100644
@@ -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
Signature · 1 line
1.5.6.5