sh+edit: Miscellaneous fixes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-03-24 20:53:53 +01:00
parent e76ccd6c4c
commit 54a4ebe5bb
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,6 @@ int main(int argc, char** argv)
{
char* rc = fgets(buffer, sizeof(buffer), stdin);
if (rc == 0) break;
if (!strcmp(rc, "EOF\n")) break;
fputs(buffer, f);
}

View File

@ -85,6 +85,8 @@ int main()
char* rc = fgets(command, sizeof(command), stdin);
if (!rc) return 0;
if (strspn(command, " \n") == strlen(command)) continue;
pid_t child = fork();
if (child < 0)
{