diff options
Diffstat (limited to 'sys/cmd/rc/lex.c')
-rw-r--r-- | sys/cmd/rc/lex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/cmd/rc/lex.c b/sys/cmd/rc/lex.c index ec9e94d..e7c7d7d 100644 --- a/sys/cmd/rc/lex.c +++ b/sys/cmd/rc/lex.c @@ -40,18 +40,18 @@ readc(void) peek = EOF; return c; } - if(shell->flag.eof) + if(proc->flag.eof) return EOF; if(!prompt(&lexer.doprompt)) exit(1); // XXX: hack for signal handling right now... - c = get(shell->cmd.io); + c = get(proc->cmd.io); lexer.doprompt = lexer.doprompt || c=='\n' || c==EOF; if(c==EOF) - shell->flag.eof = 1; + proc->flag.eof = 1; return c; } |