1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +00:00

Userland: Add a /bin/yes program (fixes #110)

This commit is contained in:
Conrad Pankoff 2019-06-01 20:10:35 +10:00 committed by Andreas Kling
parent 473d0e83ad
commit 51a74fb3bb

15
Userland/yes.cpp Normal file
View file

@ -0,0 +1,15 @@
#include <stdio.h>
int main(int argc, char** argv)
{
if (argc > 1) {
for (;;) {
puts(argv[1]);
}
} else {
for (;;) {
puts("yes");
}
}
return 0;
}