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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7884 invoked from network); 3 Jun 2021 21:46:39 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 Jun 2021 21:46:39 -0000 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:Content-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:Mime-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=fUr2YKdCtPiGQO1I4TTiIkVOI0rAIeWv1E8JCrNe5gU=; b=UhSac1c08UVUfXaT5MsM8DCYwq EiatPELMo20d/IvFjfW61gqjvi/1LkQGPsgKAWdv2DBhvGdZpxOwpIlHKCsaaQ+LG0wrO0vVtPTA/ iqMGrxREDMCQfvWQ0jf1K41kMGknyov+wsst0Dnxz/WnAC9rbTFVMYT8xgHuQuuyfDO/c8ofr4/rt GJy2HRCbc8CbyD2tvUMR8X8FI5OKdJPOhHejZgksse3HoN0cIkTPCnx7B2j7CqOnnE+C1Tjwt2/pF N/es0wr2/2jFlz8kETby2qI5jntGKebopDWfoNqjUdligj0ESCUvQPRU2nKqrkqttrVq6wvEpnrAw c+8PAd0w==; Received: from authenticated user by zero.zsh.org with local id 1lovAl-0006FV-K6; Thu, 03 Jun 2021 21:46:39 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lovAY-0005vQ-52; Thu, 03 Jun 2021 21:46:26 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 7D56327C0054; Thu, 3 Jun 2021 17:46:24 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Thu, 03 Jun 2021 17:46:24 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdelledgudeihecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderreejnecuhfhrohhmpefnrgif rhgvnhgtvggpgggvlhojiihquhgviicuoehlrghrrhihvhesiihshhdrohhrgheqnecugg ftrfgrthhtvghrnhepieekjeevledugeefiefgueelgffgtddtgeehvedvhedviefghedv ffeuvddvueehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homheplhgrrhhrhihvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdduudeh udekjeejtdegqdduudelvdejfeekhedqlhgrrhhrhihvpeepiihshhdrohhrghesfhgrsh htmhgrihhlrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3ACABA00079; Thu, 3 Jun 2021 17:46:24 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-519-g27a961944e-fm-20210531.001-g27a96194 Mime-Version: 1.0 Message-Id: <9b5f772f-2af3-4c9e-a83f-6c6f4496c6be@www.fastmail.com> In-Reply-To: References: Date: Thu, 03 Jun 2021 17:45:29 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Marlon Richert" , "Bart Schaefer" Cc: zsh-workers@zsh.org Subject: =?UTF-8?Q?Re:_Let_run-help_filter_cmd=5Fargs_before_calling_run-help-_(was_Re:_[RFC][PATCH]_Try_calling_command_with_help_fl?= =?UTF-8?Q?ags_in_run-help)?= Content-Type: text/plain X-Seq: 49008 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: On Thu, Jun 3, 2021, at 5:26 PM, Marlon Richert wrote: > On Thu, Jun 3, 2021 at 7:34 AM Bart Schaefer wrote: > > Stupid example, but: > > > > % ssh -- localhost date > > > > Without the patch, run-help displays help for the "date" command. > > With it, help for "ssh". > > That's weird. For me, it gets help for 'ssh', both before and after > the patch (on commit bd328a2). Same for me, on the 5.8 release. > > or some commands that have git-style sub-commands. > > My patch actually fixes an annoying case with 'run-help git'. Try > pressing ^[h on, for example, 'git -C /path/to/zsh log'. Without my > patch, it gives > > % run-help git > git is /usr/bin/git > error: invalid key: alias.-C > No manual entry for git--C > > With my patch, it correctly displays help for 'git log'. This already works correctly for me on the 5.8 release, but I don't have any zsh or git aliases configured. -- vq