Introduction
Introduction Statistics Contact Development Disclaimer Help
cmp: Make output of error message POSIX compliant - sbase - suckless unix tools
git clone git://git.suckless.org/sbase
Log
Files
Refs
README
LICENSE
---
commit 53040766d1a09baa7412c73c9a93afac2bfd6acc
parent 446903d68849d9db08c9d75d04c0b86f3bf63bf0
Author: Richard Ipsum <[email protected]>
Date: Mon, 20 May 2019 09:36:32 +0100
cmp: Make output of error message POSIX compliant
From POSIX:
in the POSIX locale the following diagnostic message shall be written:
"cmp: EOF on %s%s\n", <name of shorter file>, <additional info>
Amended by mcf: kept weprintf for consistency with other diagnostic
messages, but dropped the doubled prefix.
Diffstat:
M cmp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/cmp.c b/cmp.c
@@ -57,7 +57,7 @@ main(int argc, char *argv[])
continue;
} else if (b[0] == EOF || b[1] == EOF) {
if (!sflag)
- weprintf("cmp: EOF on %s\n", argv[(b[0] != EOF…
+ weprintf("EOF on %s\n", argv[(b[0] != EOF)]);
same = 0;
break;
} else if (!lflag) {
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.