From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3781 invoked from network); 23 May 2023 16:27:21 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 May 2023 16:27:21 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1684859241; b=sPDzc1ocn/VTdmwl6B4MkqdQJ5GIxBG40njmaACRAZbrV3IkD1Eo8FIJ9O3uaXfrpAZdfwhHH8 GDmO/b5SxdV8iF+tUhSwanheA9D7fUrpEUvXTURwopbrdSTzEU8HhaKKXMAi4+pfZgoE026pdx mxCPQnZ3v4jkzVWNbfd9fCgjdgTk4YLA2hLFqNp8woxpGaHFidkUi+KiEdxL63NmlQcd6kwDc5 w4Ve/MVISbEj40mbjefyajhBPOukj5I5/2a7Qh7b+TZnmrwi2qUOt3XGxrbLp/AtLjTA59eBPJ j6CaI+2ew2eHHMubp0M0mq9/2ie4+UyqIzVW4r/NctSvYw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (s1.jo-so.de) smtp.remote-ip=37.221.195.157; dmarc=none header.from=jo-so.de; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1684859241; bh=qTkQvnRFMpkwWVLx1ThEjQkaYOohUMMei0fsEO4EZ34=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:DKIM-Signature; b=g8/3JqxR3Waew1iMQHDnQOZplPMVSPJwap4HlThJl5S/CDPUp548PT5t5WnwlGGXSp04Gx2FAk 64nB+mza/EzX3Z5s7ZVIQZjOfHjBbrpTP6ZzC3HxUr5Iwm6v2zLPiCmbQ6oQ4pDfXtXkYMnB9n Xk43Ux49yCnXbPaFTUh855e1OEmsZj2RJls+dxFR7rrmIf5tVx95uXgXPPNOUbwHIEmfLEb1OE Y3e3CsBEb9rHjB/jY+GdTFNXgWbR2dbybOq/GMlXDqbGvwN07NakipCoiUNIgxBe7l+b73EARk gV19Jk6VqHmdH3SYwTtrX38YiVEMYwc4z1k+5RW1y2NMpQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=X2aMA98eKhBrbtVenA6okQWJLdn8nan4WSsrY7SyYco=; b=h9wJtAwe3cepAE2HJtuQ5FnuJQ /oQEUs6pXt2MZXoWwVSuvSC6fp8XR/ixOmebo8l02dTDwYG38/i2YdASzKO5OwicEFbUBEGmuOgud Z2tjJ9Ws3zeWcXlakwbPqezjRK783G3MB42lsCbHCkLh9laZ2a+LVh9cZDK1umVuQm4v1fv0hlhT5 M45RJPizNUObV0kPTMeVT1/IpISI700N3UFQSnF1sVILXS1i1WrapDtDZGJOWenD2DPSub60jwPfQ g0G17smDe8SwXD+NALSSnpywodZRSr0lTuBQ7zZzV7NCQiBUOz6RE1BC20XUpy4ePsExTd+5zk1Yy 5RpwqbzA==; Received: by zero.zsh.org with local id 1q1Ur0-0002BY-38; Tue, 23 May 2023 16:27:18 +0000 Authentication-Results: zsh.org; iprev=pass (s1.jo-so.de) smtp.remote-ip=37.221.195.157; dmarc=none header.from=jo-so.de; arc=none Received: from s1.jo-so.de ([37.221.195.157]:50491) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1q1UqP-0001qh-C2; Tue, 23 May 2023 16:26:42 +0000 Received: from mail-relay (helo=jo-so.de) by s1.jo-so.de with local-bsmtp (Exim 4.94.2) (envelope-from ) id 1q1UqN-000bjI-KU for zsh-workers@zsh.org; Tue, 23 May 2023 18:26:39 +0200 Received: from joerg by zenbook.jo-so.de with local (Exim 4.96) (envelope-from ) id 1q1UqN-0007L4-0K; Tue, 23 May 2023 18:26:39 +0200 From: =?UTF-8?q?J=C3=B6rg=20Sommer?= To: zsh-workers@zsh.org Cc: =?UTF-8?q?J=C3=B6rg=20Sommer?= Subject: [PATCH v2] run-help-openssl: Reduce code and use new manpages Date: Tue, 23 May 2023 18:25:41 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: <2322b9b9b46c585516c4347ad3b07a9db26f0a7f.1684361567.git.joerg@jo-so.de> References: <2322b9b9b46c585516c4347ad3b07a9db26f0a7f.1684361567.git.joerg@jo-so.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Seq: 51776 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: 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. --- Functions/Misc/run-help-openssl | 8 +------- 1 file changed, 1 insertion(+), 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} -- 2.40.1