mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +00:00
Userland: Add a /bin/yes program (fixes #110)
This commit is contained in:
parent
473d0e83ad
commit
51a74fb3bb
Notes:
sideshowbarker
2024-07-19 13:48:51 +09:00
Author: https://github.com/deoxxa 🔰
Commit: 51a74fb3bb
Pull-request: https://github.com/SerenityOS/serenity/pull/154
Reviewed-by: https://github.com/awesomekling ✅
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