diff options
author | Pádraig Brady <P@draigBrady.com> | 2016-06-24 01:09:28 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2016-06-24 01:09:28 +0100 |
commit | ba5767c2b869dcbbae91f1d42b488dca31652a0a (patch) | |
tree | bab4ec2292656e913d80efde51cc8d4fa275b1ce /src | |
parent | 818b2f48974298065a43a8a2d5355e4aaa65c09d (diff) | |
download | coreutils-ba5767c2b869dcbbae91f1d42b488dca31652a0a.tar.xz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/yes.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |