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 4717 invoked from network); 17 May 2023 22:17:04 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 May 2023 22:17:04 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1684361824; b=M5VZfp6zMnK9U0AEtMExH17oovQkP9cJaJrNppnkWVvFqn3StNdonoKNEpRKBxoh+Xlspg2Wh9 SPoMpyEcHN9hLGaRYtkhuIfGrvb6jZaANaWDsrajmTe4Ka06l1BF4UgBn2Fl/NOOU4BlfKj0+p K2tmUKoRAyzvpV9jLl5oO6Ek2MFcczKTg4SS224JSgJM52uRjUQe9xyFx4usy7Zth57WNgxebW +tz42fO85uE2unpmEey50/k+p2XM2GIITdKP4sDrB2onS6HRvgtTYxaWP+laMkjzyiHBK3fGce qq3intF3CJivuPG/iyj/HOgIG3NpgFybzx+suc+2iN1s7Q==; 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=1684361824; bh=ZrnSuF2k3gbUjng6Xyt++3IBSXsVVISx82k/Bq9NJ/s=; 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=ibkmiAlK0ADTOeZkLE0R9JOBuPjCEfjHDVDYyDdXs+YKutcIaQZI7uE7YCIiKFGvr+NonJITxb C9oh3P2HCOKAHw/NS18NB72R7OyZqk5Vc9y6PIXxzxUW61UYr++rSZ9Pfw1yarukxHIj5sdmtQ 8eOHNbD/KGVYjaMKsc2NZgdyTF6Rzqn9drED8iWkpY6dAO+2+HpkmxLIHKtdQdlhtOtBjupQPD 48y1j8Rx23G75qhvJR0HveLkemDVkwcy3YpKmAmH5SOQiH+iQ3k91lOBoF7i9FuidBC8hD80TX 5OJOMqDwfZzkXAD9vM1UnbuO3tYee/RchrJ5qfykOQPSnw==; 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=M2SMmO8Vu9aK+eqHx7Iy+3J97u+7CCHWPSPT48fPiow=; b=afs5f043uDjR1rC7nxFJMcDOCO XTJPaQgTjr/H9/n+ikIlxeW4IB3sugIgRt0rX3799xzYfSh+Em74pjtLAp+7bmDfUh0h3avOsCEcG i+eSZ+Fr/AAc0Ivq3V0gXnjz1/5QdjhH9jzMVfU7xoFBbo264ir7P0c7MP62SLT0i3oJJSlAU81pY FZ3l4zFYE6Kw+RqFIelYQrNo3eshcDhmI7dq3uBCPqJlNu1qfmAi9SPJld2G/wJp/n8a9WrOlqPjE UauaTPG9+i5jSOVp/8DPtNvH+kQqaOoUmtBKUuNv+rbN/Ln3C6gPHkhf2MwpotbWYUKElEWUAT+Pj siJJ/jew==; Received: by zero.zsh.org with local id 1pzPSB-0009me-S8; Wed, 17 May 2023 22:17:03 +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]:54145) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pzPOu-0008F1-2f; Wed, 17 May 2023 22:13:40 +0000 Received: from mail-relay (helo=jo-so.de) by s1.jo-so.de with local-bsmtp (Exim 4.94.2) (envelope-from ) id 1pzPOt-0001MM-O7 for zsh-workers@zsh.org; Thu, 18 May 2023 00:13:39 +0200 Received: from joerg by zenbook.jo-so.de with local (Exim 4.96) (envelope-from ) id 1pzPOt-005Qh2-0R; Thu, 18 May 2023 00:13: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 3/4] run-help-openssl: Reduce the code Date: Thu, 18 May 2023 00:12:46 +0200 Message-Id: <67a227ea97840793638c80085a81c838f0a74bd2.1684361567.git.joerg@jo-so.de> 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: 51748 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: --- 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..88293b252 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 ${1:-openssl} -- 2.40.1