minor changed

This commit is contained in:
Pin
2022-03-30 18:52:07 -04:00
parent 31ce16def6
commit d4085fe7ea

2
msh.c
View File

@@ -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