diff --git a/sh.c b/sh.c index ed2c1d9..3e596ba 100644 --- a/sh.c +++ b/sh.c @@ -65,7 +65,7 @@ runcmd(struct cmd *cmd) struct redircmd *rcmd; if(cmd == 0) - return; + exit(); switch(cmd->type){ default: