mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:57:47 +00:00
Userland: Add a /bin/yes program (fixes #110)
This commit is contained in:
parent
473d0e83ad
commit
51a74fb3bb
1 changed files with 15 additions and 0 deletions
15
Userland/yes.cpp
Normal file
15
Userland/yes.cpp
Normal 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;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue