diff options
author | Frans Kaashoek <[email protected]> | 2010-07-02 14:51:53 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2010-07-02 14:51:53 -0400 |
commit | 40889627ba50db29a64bc6a1553c2b21e6a99b78 (patch) | |
tree | 7cb8f51492af706cafdcaf1b01a5cac8073d5a38 /sh.c | |
parent | b7a517f2277670e156f150ee2cb7aae6426c6aef (diff) | |
download | xv6-labs-40889627ba50db29a64bc6a1553c2b21e6a99b78.tar.gz xv6-labs-40889627ba50db29a64bc6a1553c2b21e6a99b78.tar.bz2 xv6-labs-40889627ba50db29a64bc6a1553c2b21e6a99b78.zip |
Initial version of single-cpu xv6 with page tables
Diffstat (limited to 'sh.c')
-rw-r--r-- | sh.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -330,7 +330,7 @@ parsecmd(char *s) { char *es; struct cmd *cmd; - + es = s + strlen(s); cmd = parseline(&s, es); peek(&s, es, ""); @@ -363,7 +363,7 @@ struct cmd* parsepipe(char **ps, char *es) { struct cmd *cmd; - + cmd = parseexec(ps, es); if(peek(ps, es, "|")){ gettoken(ps, es, 0, 0); @@ -420,6 +420,7 @@ parseexec(char **ps, char *es) int tok, argc; struct execcmd *cmd; struct cmd *ret; + int *x = (int *) peek; if(peek(ps, es, "(")) return parseblock(ps, es); |