From c09423b0a6df12d7c115aba25e506190576ce3c1 Mon Sep 17 00:00:00 2001 From: Gitea Date: Sun, 13 Dec 2020 09:37:24 -0600 Subject: [PATCH] Added exit status; updated copyright --- cmp.1 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/cmp.1 b/cmp.1 index ba5dc09..33c0292 100755 --- a/cmp.1 +++ b/cmp.1 @@ -23,10 +23,26 @@ Outputs the byte number and differing byte for each difference Suppresses all output, even when the files differ. If the two files are of differing lengths, it also suppresses that notice. A difference in the two files is indicated through exit status only. +.SH EXIT STATUS +.TP +.BR 0 +The files are identical. +.TP +.BR 1 +The files are different or are of different lengths. +.TP +.BR 2 +Tried to use stdin as both files. +.TP +.BR 3 +Not enough file operands. +.TP +.BR 4 +Could not open one or both files. .SH AUTHOR Written by Kat. .SH COPYRIGHT -Copyright (C) 2019 Katlynn Richey +Copyright (C) 2020 The FENIX Project .PP This software is free software. Feel free to modify it and/or pass it around.