From: Alexander Barton Date: Mon, 27 May 2024 19:28:24 +0000 (+0200) Subject: Suppress errors of the "man --version" command X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;p=pdfman.git Suppress errors of the "man --version" command The man(1) command on macOS does not support any version output at all, for example. --- diff --git a/pdfman b/pdfman index 0803f00..8ded8ed 100755 --- a/pdfman +++ b/pdfman @@ -48,7 +48,7 @@ while [[ $# -gt 0 ]]; do ;; "--version") echo "pdfman, version 1" >&2 - man --version + man --version 2>/dev/null exit 2 ;; -*)