Skip to contentSkip to conversation

[6946] Fix hxtool eating backslash sequences for sh != bash

Qemu-devel Blue Swirl 1 participant 1 message Mar 29, 2009

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 6946

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6946
Author:   blueswir1
Date:     2009-03-29 10:50:43 +0000 (Sun, 29 Mar 2009)

Log Message:
-----------
Fix hxtool eating backslash sequences for sh != bash

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

Modified: trunk/hxtool
===================================================================

hxtool +1 -1
@@ -10,7 +10,7 @@
             STEXI*|ETEXI*) flag=$(($flag^1))
             ;;
             *)
-            test $flag -eq 1 && echo "$str"
+            test $flag -eq 1 && printf "%s\n" "$str"
             ;;
         esac
     done