summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Functions/Misc/run-help-openssl8
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 <opk@zsh.org>
+ * 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}