k9core

Unnamed repository
Log | Files | Refs | LICENSE

commit 8cde471f41e12356d31a9024dd3dd182e48808e7
parent 9713636417a14be9309f5d5cdace0f66f70aac57
Author: qorg11 <qorg@vxempire.xyz>
Date:   Sun, 23 Aug 2020 11:01:36 +0200

what the hell is -m flag posix is literally the same as -c

Diffstat:
Msrc/wc.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/wc.c b/src/wc.c @@ -68,7 +68,7 @@ main(int argc, char *argv[]) show_lines = show_words = show_bytes = 1; /* Process arguments */ - while((c = getopt(argc,argv,"lwc")) > 0) + while((c = getopt(argc,argv,"lwcm")) > 0) { switch(c) { @@ -79,8 +79,10 @@ main(int argc, char *argv[]) show_words = 0; break; case 'c': + case 'm': show_bytes = 0; - break; + break; + } }