aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hxtool6
1 files changed, 3 insertions, 3 deletions
diff --git a/hxtool b/hxtool
index 8dbeb76f6..49b722b6f 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*)
;;