qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [6945] Fix hxtool eating backslash sequences


From: Blue Swirl
Subject: [Qemu-devel] [6945] Fix hxtool eating backslash sequences
Date: Sun, 29 Mar 2009 09:06:44 +0000

Revision: 6945
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6945
Author:   blueswir1
Date:     2009-03-29 09:06:43 +0000 (Sun, 29 Mar 2009)
Log Message:
-----------
Fix hxtool eating backslash sequences

Modified Paths:
--------------
    trunk/hxtool

Modified: trunk/hxtool
===================================================================
--- trunk/hxtool        2009-03-29 01:31:56 UTC (rev 6944)
+++ trunk/hxtool        2009-03-29 09:06:43 UTC (rev 6945)
@@ -3,14 +3,14 @@
 hxtoh()
 {
     flag=1
-    while read str; do
+    while read -r str; do
         case $str in
             HXCOMM*)
             ;;
             STEXI*|ETEXI*) flag=$(($flag^1))
             ;;
             *)
-            test $flag -eq 1 && echo $str
+            test $flag -eq 1 && echo "$str"
             ;;
         esac
     done
@@ -19,7 +19,7 @@
 hxtotexi()
 {
     flag=0
-    while read str; do
+    while read -r str; do
         case "$str" in
             HXCOMM*)
             ;;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]