1 /* 2 * Copyright (c) 1987 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 char copyright[] = 10 "@(#) Copyright (c) 1987 Regents of the University of California.\n\ 11 All rights reserved.\n"; 12 #endif /* not lint */ 13 14 #ifndef lint 15 static char sccsid[] = "@(#)yes.c 5.4 (Berkeley) 06/01/90"; 16 #endif /* not lint */ 17 18 main(argc, argv) 19 int argc; 20 char **argv; 21 { 22 if (argc > 1) 23 for(;;) 24 puts(argv[1]); 25 else for (;;) 26 puts("y"); 27 } 28