diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-10-18 17:51:11 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-10-18 17:51:11 -0700 |
commit | ead340a66039096c7b4bf12dcd65e189769c6653 (patch) | |
tree | 732594824f3e7951eecf0180792db2d24ff6d13e /sys/cmd/rc/lex.c | |
parent | bf03074e346b004659196b6c17eee04dbffd3ac2 (diff) |
feat(rc): job control prototype working for basic commands
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; } |