From 1682bf4dc0e70c50ca791e811de99e8d25f9ccc7 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Wed, 17 Feb 2021 18:53:51 +0100 Subject: pkgs/profpatsch/nman: use 100 for usage errors In the Profpatsch universe, execline reigns surpreme. Therefore we must bow to its (understandable) rejection of POSIX and use 100 as the user error instead of the 64 of sysexits.h. This makes a lot of sense, as we are already using execline conventions for the other exit codes. --- pkgs/profpatsch/nman/nman.1 | 2 +- pkgs/profpatsch/nman/nman.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs/profpatsch/nman') diff --git a/pkgs/profpatsch/nman/nman.1 b/pkgs/profpatsch/nman/nman.1 index c6255827..b686b931 100644 --- a/pkgs/profpatsch/nman/nman.1 +++ b/pkgs/profpatsch/nman/nman.1 @@ -155,7 +155,7 @@ Success. .It 1 An expected error like a man page not being found or the requested package not existing. -.It 64 +.It 100 An usage error, indicating the user is invoking .Nm wrong. diff --git a/pkgs/profpatsch/nman/nman.rs b/pkgs/profpatsch/nman/nman.rs index 6cb5f54c..1672e449 100644 --- a/pkgs/profpatsch/nman/nman.rs +++ b/pkgs/profpatsch/nman/nman.rs @@ -37,8 +37,8 @@ impl NmanError<'_> { NmanError::Instantiate(_, _) => 1, // missing executable NmanError::Execution(_) => 127, - // user error, EX_USAGE (sysexits.h) - NmanError::Usage => 64, + // user error + NmanError::Usage => 100, // everything else is an unexpected error _ => 101 } -- cgit 1.4.1