diff --git a/src/cmd/ksh93/sh/lex.c b/src/cmd/ksh93/sh/lex.c index 90596e446..660878476 100644 --- a/src/cmd/ksh93/sh/lex.c +++ b/src/cmd/ksh93/sh/lex.c @@ -1891,6 +1891,8 @@ static int here_copy(Lex_t *lp,register struct ionod *iop) sfputc(sp,'\\'); } } + if(LEN < 1) + LEN = 1; bufp = fcseek(-LEN); } else