diff --git a/4-ShellP2/dsh b/4-ShellP2/dsh index 94daff0c436fa56931a870be364ed1858e5fe478..8e08ece9461edfb4cf48825e0d345a8599978ee2 100755 Binary files a/4-ShellP2/dsh and b/4-ShellP2/dsh differ diff --git a/4-ShellP2/dshlib.c b/4-ShellP2/dshlib.c index eaad17c279490ff128b60d0fd6340fae25d1e643..82e4ee84ea18f9e45521067e5807683a11be77d7 100644 --- a/4-ShellP2/dshlib.c +++ b/4-ShellP2/dshlib.c @@ -200,6 +200,7 @@ int exec_local_cmd_loop() if (strcmp(cmd_buff, "rc") == 0) { printf("%d\n", rc); //if ((rc = clear_cmd_buff(cmd)) != OK_EXIT) exit(rc); + rc = 0; continue; } diff --git a/4-ShellP2/dshlib.h b/4-ShellP2/dshlib.h index df2f9a4d0061aee7f57b947ccba254178756c4b4..1fe4df08e9a8be43c9db1195a1fb1c8382d2083f 100644 --- a/4-ShellP2/dshlib.h +++ b/4-ShellP2/dshlib.h @@ -80,6 +80,6 @@ int exec_cmd(cmd_buff_t *cmd); #define CMD_OK_HEADER "PARSED COMMAND LINE - TOTAL COMMANDS %d\n" #define CMD_WARN_NO_CMD "warning: no commands provided\n" #define CMD_ERR_PIPE_LIMIT "error: piping limited to %d commands\n" -#define CMD_ERR_EXECUTE "Command not found in PATH\n" +#define CMD_ERR_EXECUTE "Command not found in PATH" #endif