minor changed
This commit is contained in:
2
msh.c
2
msh.c
@@ -131,7 +131,7 @@ char *getPrompt() {
|
|||||||
dup2(output.write, STDOUT_FILENO);
|
dup2(output.write, STDOUT_FILENO);
|
||||||
close(STDERR_FILENO); // Do not print errors to the screen
|
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
|
} else if (pid < 0) { // Error forking
|
||||||
printf("Error forking\n");
|
printf("Error forking\n");
|
||||||
} else { // Parent process
|
} else { // Parent process
|
||||||
|
|||||||
Reference in New Issue
Block a user