diff --git a/msh.c b/msh.c index 9e467b6..bb47159 100644 --- a/msh.c +++ b/msh.c @@ -131,7 +131,7 @@ char *getPrompt() { dup2(output.write, STDOUT_FILENO); close(STDERR_FILENO); // Do not print errors to the screen - execlp("bash", "bash", "-i", "-c", "echo \"${PS1@P}\"", NULL); + execlp("bash", "bash", "-i", "-c", "echo \"${PS1@P}\" || echo \">>\"", NULL); } else if (pid < 0) { // Error forking printf("Error forking\n"); } else { // Parent process