aboutsummaryrefslogtreecommitdiff
path: root/hxtool
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-29 09:06:43 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-29 09:06:43 +0000
commitfb21ced72d082334a609ee55ec01d9f215bfacce (patch)
tree3bba1abd4469a8dbad8cec61fa8fbcb1118b24a8 /hxtool
parent4c978075d7f012cadd189cd269509a8e0e0c403a (diff)
Fix hxtool eating backslash sequences
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6945 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hxtool')
-rw-r--r--hxtool6
1 files changed, 3 insertions, 3 deletions
diff --git a/hxtool b/hxtool
index 8dbeb76f67..49b722b6fc 100644
--- a/hxtool
+++ b/hxtool
@@ -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 @@ hxtoh()
hxtotexi()
{
flag=0
- while read str; do
+ while read -r str; do
case "$str" in
HXCOMM*)
;;