Skip to contentSkip to conversation

Fix hxtool.

PATCH In review Stefan Weil 1 participant 2 messages Jun 20, 2009 – Jul 1, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix hxtool.

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
#1 lore raw
Quoted 23 lines · Stefan Weil

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 +0 -0
index 885abe2..0fdbc64 100644
@@ -26,10 +26,10 @@ hxtotexi()
             STEXI*|ETEXI*) flag=$(($flag^1))
             ;;

hxtool hxtotexi() · line 35

Quoted 10 lines
hxtool +2 -2
             DEFHEADING*)
-            echo $(expr "$str" : "DEFHEADING(\(.*\))")
+            echo "$(expr "$str" : "DEFHEADING(\(.*\))")"
             ;;
             *)
-            test $flag -eq 1 && echo $str
+            test $flag -eq 1 && echo "$str"
             ;;
         esac
     done

The patch is still missing in qemu.git. Without it, the next version of http://www.nongnu.org/qemu/qemu-doc.html
will look bad. ;-)

Regards,

Stefan Weil