sh: update it
This commit is contained in:
parent
4aa979bd87
commit
a1a1157151
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user