sh: update it

This commit is contained in:
apio 2022-10-22 15:09:09 +02:00
parent 4aa979bd87
commit a1a1157151

View File

@ -18,7 +18,7 @@ typedef struct
void show_prompt() void show_prompt()
{ {
if (status) { printf("%d [%ld]> ", WEXITSTATUS(status), getpid()); } if (WEXITSTATUS(status)) { printf("%d [%ld]> ", WEXITSTATUS(status), getpid()); }
else else
printf("[%ld]> ", getpid()); printf("[%ld]> ", getpid());
} }