From ba5767c2b869dcbbae91f1d42b488dca31652a0a Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Fri, 24 Jun 2016 01:09:28 +0100 Subject: yes: fix copy and paste issue with previous commit * src/yes.c (main): Output 'y' not '-'. * tests/misc/yes.sh: Add a test for default output. --- src/yes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/yes.c') diff --git a/src/yes.c b/src/yes.c index e127310f1..a3b25ce08 100644 --- a/src/yes.c +++ b/src/yes.c @@ -76,7 +76,7 @@ main (int argc, char **argv) char **operand_lim = argv + argc; if (optind == argc) - *operand_lim++ = bad_cast ("-"); + *operand_lim++ = bad_cast ("y"); /* Buffer data locally once, rather than having the large overhead of stdio buffering each item. */ -- cgit v1.2.3-54-g00ecf