summaryrefslogtreecommitdiffstats
path: root/eshtrans/frontend/lexer.esh
diff options
context:
space:
mode:
Diffstat (limited to 'eshtrans/frontend/lexer.esh')
-rw-r--r--eshtrans/frontend/lexer.esh4
1 files changed, 3 insertions, 1 deletions
diff --git a/eshtrans/frontend/lexer.esh b/eshtrans/frontend/lexer.esh
index d904aa0..6775bbc 100644
--- a/eshtrans/frontend/lexer.esh
+++ b/eshtrans/frontend/lexer.esh
@@ -783,8 +783,8 @@ scan_wordexp_arith()
arith=''
paren_lvl=0
+ lgetc
while :; do
- lgetc
case "${c}" in
'')
synerr 'end of file unexpected (%s)' \
@@ -823,11 +823,13 @@ scan_wordexp_arith()
# was run in a subshell.
lineno=$((${lineno} + ${ln_off}))
arith="${arith}${sub_wordexp}"
+ continue
;;
*)
arith="${arith}${c}"
;;
esac
+ lgetc
done
}