From d4085fe7eabf23d283b930e06aec083a525ab8b6 Mon Sep 17 00:00:00 2001 From: Pin Date: Wed, 30 Mar 2022 18:52:07 -0400 Subject: [PATCH] minor changed --- msh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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