ksh/ksh93-heredoc.dif
2013-02-05 17:51:33 +00:00

12 lines
257 B
Plaintext

--- src/cmd/ksh93/sh/lex.c
+++ src/cmd/ksh93/sh/lex.c 2012-01-16 15:09:38.000000000 +0000
@@ -1893,6 +1893,8 @@ static int here_copy(Lex_t *lp,register
sfputc(sp,'\\');
}
}
+ if (LEN < 1)
+ LEN = 1;
bufp = fcseek(-LEN);
}
else