mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-13 18:00:40 +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: https://github.com/SerenityOS/serenity/commit/51a74fb3bb4 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…
Reference in a new issue