Commit fb21ced72d082334a609ee55ec01d9f215bfacce
1 parent
4c978075
Fix hxtool eating backslash sequences
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6945 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
3 deletions
hxtool
... | ... | @@ -3,14 +3,14 @@ |
3 | 3 | hxtoh() |
4 | 4 | { |
5 | 5 | flag=1 |
6 | - while read str; do | |
6 | + while read -r str; do | |
7 | 7 | case $str in |
8 | 8 | HXCOMM*) |
9 | 9 | ;; |
10 | 10 | STEXI*|ETEXI*) flag=$(($flag^1)) |
11 | 11 | ;; |
12 | 12 | *) |
13 | - test $flag -eq 1 && echo $str | |
13 | + test $flag -eq 1 && echo "$str" | |
14 | 14 | ;; |
15 | 15 | esac |
16 | 16 | done |
... | ... | @@ -19,7 +19,7 @@ hxtoh() |
19 | 19 | hxtotexi() |
20 | 20 | { |
21 | 21 | flag=0 |
22 | - while read str; do | |
22 | + while read -r str; do | |
23 | 23 | case "$str" in |
24 | 24 | HXCOMM*) |
25 | 25 | ;; | ... | ... |