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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21450 invoked from network); 9 Dec 2020 09:05:55 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Dec 2020 09:05:55 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1607504755; b=z2Zb6aZQbl0DWGvm6+AS5P0E+DRzqmydb78kRo/5A28Ni3oFzS95kKMPgo1Yl6Q84o5CTFxKY2 qIwvlZwRUIMJOrCG0NRTwUhbdawySh+hMgz7hLxI718h1Ozf4gpcEn7Mu3gS44O7Yf8GSZV7k1 1wQwfgr53NdZwKb6VtgFtG3jd5vzTm5d17MMzTh/07XTu68pWJysXtT7yIDWFHsXgS7ievQ1RO Pi8Eu2pyhILc0tqN2OagNOaGVFu8P1C2p+3PmtI6XozQFzGgXgk/o7p7YoUTBCXbAFoG+fU/fi hk+vMjAAuQhMfaUr++8q6IVYlOM9H1jqdgy9uXgwgJJdzA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (rcpt-expgw.biglobe.ne.jp) smtp.remote-ip=133.208.98.4; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1607504755; bh=qIA4FrIqEzVruAAYqkOJX5dK/qgfdiKLJp/JIKx8v64=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Message-ID:In-Reply-To:To:References:Date:Subject: MIME-Version:Content-Transfer-Encoding:Content-Type:From:DKIM-Signature; b=Cx/GRSDQOG62fq61B355jNEyXCLanZfXpanNXmba2G6Ud7AcSYf+T133m6hw0PAFPo18O15n3+ bSvxKLX5b5ix9TBdK41xFOlvk4jI5dhbag7nUVkHWZqVSxyvmlD/7KbxrGmQleRIwnSDq5bWpY uH3TRrjZeKUPifzEjiTFDJbuhYDzOnLhb95guv+EKneaLGc2KN6lCoBMXCZYyvQCOlvLOW946y BIA1WWS9KD3gSF/DWdFY6ki5Yg70UpLoMsRxkAEHqGLLbw+K5s3AlcIAN9rmRnpDJf+OgAKJt1 /hz7t++CD/l1anfvjYHv9cDFPK24Y4AazxFjhihdvWeOBQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-Id:In-Reply-To:To:References: Date:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Mumpizh8W3ItgK0iSzDEcdrRUf5OLdM/r5VPQIspfxQ=; b=rt1Lx97xilqFzSRnBOOYhmhrOF PozzLFNr/G5R/UJU+PNZW9cwRBycMmFcO7fuCUX1MmeifZ+yaYIEef+/Jg9vDkI6FKrnWZOARU1Uh 6FX/6oZ0CKHLbVPUcZB51f2VCOzr7AL3hOY8Q6fFi3IZO+cAzj61wxLN1Iis24fMZgUCkQa4ZhuCK GPim8mQR8zz6hztJlXfnIPbZy+2wK75mV681UJjZkCWuBgLoRDRsthTbm6Q01op1hvURYy95QoMSc cV9qCp4uigDKXNkUUBUDTkhLFonu14j9gDf2Vs+Kg/RNYXUPsu6yhqEQ3KlU1M85284y5msAWntHZ Iz73FbVA==; Received: from authenticated user by zero.zsh.org with local id 1kmvPw-0000vb-O7; Wed, 09 Dec 2020 09:05:48 +0000 Authentication-Results: zsh.org; iprev=pass (rcpt-expgw.biglobe.ne.jp) smtp.remote-ip=133.208.98.4; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from rcpt-expgw.biglobe.ne.jp ([133.208.98.4]:51176) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1kmvPZ-0000mS-Fg; Wed, 09 Dec 2020 09:05:27 +0000 Received: from vc-gw.biglobe.ne.jp by rcpt-expgw.biglobe.ne.jp (hngd/4514161018) with ESMTP id 0B995JrD002392 for ; Wed, 9 Dec 2020 18:05:19 +0900 Received: from smtp-gw.biglobe.ne.jp ([192.168.154.156]) by vc-gw.biglobe.ne.jp (shby/1011270619) with ESMTP id 0B995J9c007444 for ; Wed, 9 Dec 2020 18:05:19 +0900 X-Biglobe-Sender: Received: from tamac1.yz.yamagata-u.ac.jp ([133.24.84.20]) by smtp-gw.biglobe.ne.jp id SXbpC0A89940; Wed, 09 Dec 2020 18:05:19 +0900 (JST) From: Jun T Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: [PATCH 1/2] run-help: chain run-help-sudo to call run-help on the next argument Date: Wed, 9 Dec 2020 18:05:18 +0900 References: <20181227152444.31608-1-me@rmz.io> To: zsh-workers@zsh.org In-Reply-To: <20181227152444.31608-1-me@rmz.io> Message-Id: <2C69EF8B-38D6-4770-91C2-AA0959C7B9CD@kba.biglobe.ne.jp> X-Mailer: Apple Mail (2.3445.104.17) X-Biglobe-Spnum: 45322 X-Seq: 47730 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: Archived-At: It seems we have missed two patches from Samir Benmendil. (pointed out by Christian K, users/26216=E2=81=A9) > 2018/12/28 0:24, Samir Benmendil wrote: >=20 > diff --git a/Functions/Misc/run-help-sudo = b/Functions/Misc/run-help-sudo > index f38696e19..a8fa7aa0f 100644 > --- a/Functions/Misc/run-help-sudo > +++ b/Functions/Misc/run-help-sudo > @@ -2,6 +2,6 @@ > if [ $# -eq 0 ]; then > man sudo > else > - man $1 > + run-help $1 > fi >=20 Can we assume that the function run-help is already loaded when = run-help-sudo is called? (I think yes, no one will use run-help-sudo without loading = run-help). If this is the case, I think the patch has no problem. ----- Jun=