Fix hxtool eating backslash sequences
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6945 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
4c978075d7
commit
fb21ced72d
6
hxtool
6
hxtool
@ -3,14 +3,14 @@
|
|||||||
hxtoh()
|
hxtoh()
|
||||||
{
|
{
|
||||||
flag=1
|
flag=1
|
||||||
while read str; do
|
while read -r str; do
|
||||||
case $str in
|
case $str in
|
||||||
HXCOMM*)
|
HXCOMM*)
|
||||||
;;
|
;;
|
||||||
STEXI*|ETEXI*) flag=$(($flag^1))
|
STEXI*|ETEXI*) flag=$(($flag^1))
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
test $flag -eq 1 && echo $str
|
test $flag -eq 1 && echo "$str"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -19,7 +19,7 @@ hxtoh()
|
|||||||
hxtotexi()
|
hxtotexi()
|
||||||
{
|
{
|
||||||
flag=0
|
flag=0
|
||||||
while read str; do
|
while read -r str; do
|
||||||
case "$str" in
|
case "$str" in
|
||||||
HXCOMM*)
|
HXCOMM*)
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user