From f093b41f09ab18459a75c86c0a896aa36432803b Mon Sep 17 00:00:00 2001 From: Jörg Sommer Date: Tue, 23 May 2023 18:25:41 +0200 Subject: 51776: run-help-openssl: Reduce code and use new manpages Openssl switches the naming of manpages to the common style openssl-$SUBCOMMAND, e.g. openssl-enc. For backward compatibility try to show the manpage with the old name if the new one doesn't exist. --- ChangeLog | 3 +++ Functions/Misc/run-help-openssl | 8 +------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index f03fd0d5c..eeb4cd618 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2023-09-20 Oliver Kiddle + * Jörg Sommer: 51776: Functions/Misc/run-help-openssl: + Reduce code and use new manpages + * Wim de With: 51857: Completion/Linux/Command/_fusermount: Include fusermount3 in fusermount completions diff --git a/Functions/Misc/run-help-openssl b/Functions/Misc/run-help-openssl index c528418c8..e4e45070e 100644 --- a/Functions/Misc/run-help-openssl +++ b/Functions/Misc/run-help-openssl @@ -1,7 +1 @@ - -if [ $# -eq 0 ]; then - man openssl -else - man $1 -fi - +man openssl${1:+-$1} || man ${1:-openssl} -- cgit v1.2.3