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
Notes: sideshowbarker 2024-07-19 13:48:51 +09:00

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;
}