diff options
author | yar <yar@FreeBSD.org> | 2006-07-31 11:32:12 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-07-31 11:32:12 +0000 |
commit | e8d2a6dffbb8a2e50cddf28bfdc20e52ed8e8695 (patch) | |
tree | fb0ed117c7a59f6c197a409503f98e02b5e0f353 /bin | |
parent | 19e36da670be5b9ed5ae507115cd54cfb7549ed1 (diff) | |
download | FreeBSD-src-e8d2a6dffbb8a2e50cddf28bfdc20e52ed8e8695.zip FreeBSD-src-e8d2a6dffbb8a2e50cddf28bfdc20e52ed8e8695.tar.gz |
Do not forget to increment the input line counter
when reading a word spanning multiple lines.
PR: bin/101094
MFC after: 5 days
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c index 4771117..26504c1 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -952,6 +952,7 @@ readtoken1(int firstc, char const *syntax, char *eofmark, int striptabs) USTPUTC('\\', out); pungetc(); } else if (c == '\n') { + plinno++; if (doprompt) setprompt(2); else |