1 /* vi: set sw=4 ts=4: */
3 * yes implementation for busybox
5 * Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org>
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
10 /* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
12 /* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org)
14 * Size reductions and removed redundant applet name prefix from error messages.
19 /* This is a NOFORK applet. Be very careful! */
21 //usage:#define yes_trivial_usage
23 //usage:#define yes_full_usage "\n\n"
24 //usage: "Repeatedly output a line with STRING, or 'y'"
26 int yes_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
27 int yes_main(int argc UNUSED_PARAM, char **argv)
43 } while (putchar('\n') != EOF);
45 bb_perror_nomsg_and_die();