about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorJörg Sommer <joerg@jo-so.de>2023-05-23 18:25:41 +0200
committerOliver Kiddle <opk@zsh.org>2023-09-21 00:03:59 +0200
commitf093b41f09ab18459a75c86c0a896aa36432803b (patch)
tree12d18823ded8f9e40959d64900b4b9c95e6046c5 /Functions
parent12b61965b5f78f95109ad9f67199c43e3c90693a (diff)
downloadzsh-f093b41f09ab18459a75c86c0a896aa36432803b.tar.gz
zsh-f093b41f09ab18459a75c86c0a896aa36432803b.tar.xz
zsh-f093b41f09ab18459a75c86c0a896aa36432803b.zip
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.
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Misc/run-help-openssl8
1 files changed, 1 insertions, 7 deletions
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}