summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parse.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 90923e3615..f2cecf0d61 100644
--- a/parse.y
+++ b/parse.y
@@ -2909,7 +2909,10 @@ yylex()
(lex_state == EXPR_ARG && space_seen && !ISSPACE(c))) {
pushback(c);
if (lex_state == EXPR_ARG) arg_ambiguous();
- if (ISDIGIT(c)) goto start_num;
+ if (ISDIGIT(c)) {
+ c = '+';
+ goto start_num;
+ }
lex_state = EXPR_BEG;
return tUPLUS;
}