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 8517 invoked from network); 3 Jun 2021 21:52:33 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 Jun 2021 21:52:33 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1622757153; b=iMbJOqcZJbCTwE2bKiKWnCzDye2sG2wpyXni52nmyHA4YBosgyKhG1XD/4vmktrhUEFY1x5QfR tTOXq4rSVNM1XwX35U7DWjdCzLxumTkbxcA0N4dvsDNN+lmSCvZnj3T49oX/mqH4R3AqwZDqA5 Kp/0axF9P2+xzg0VgPQ8ubQtmwX8KuDdPH+46RYJN61tHfAN9s/dLCUKufvxV4Qi37W1MEhHef CiIL54haVBGAoNC9hiP6oR20hOq2jlZzf+t73coWGBBZ5KNdJ4jbzbQ4GToneKCbkyJiB4PrEk Ow68tk4s9eFjfitrZpqxf/Ha50WFtGdiC1UwaKwKQhbW4g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f171.google.com) smtp.remote-ip=209.85.167.171; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1622757153; bh=vJ4ViK1YOmXNQ44zH0cfrPuX8t3ALeLSVo7TO7QQLVU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=lXTThP3XeRPzNYXGCqQzLFnGRrPc8oEU6aWHGcUHEJBFiYAov6H+G66qRfEglPtbQlDxCPDq8d snsXfPCLcNhESDb682W2pF2heIFW+K5fhmiHkQBasxZ/dtq1X5CV0c5Wcdtbj+6570+PbsQfV6 upLv9snPfGlwif1vBYX5mZEFMX7yqJDupjKwDXEL2x+Nen5wtPFoIgJ41Hbns5FuYOZtdVSIeg B7hgNAaoQPmGk73uw9Ngv50aOODCdg2BGK502HmAax+bcN0ziHGBa2ENrKW1QTdgUA7U1V+OqA 886li9svxkeyR2v4l/NOgkxfv3xE5Jv71OfUbw2iMx+RRA==; 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-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=hWdTvPhv3/27tQI7IT2rUYcfYAw3uvNsFbrZeA2WpdM=; b=IdXIi7OzCKkQ8k1EOANrjSYI4N tuiX5BnPc4uceLJg87gKzOVFkgP7dP/DRlzMzGjEJSYoojW6udbo3hSUWQ6EtGlig7jrftpRPrEwb TJI4PB9XwFhrg5e4NS+3ji6sbuuDrLMApHsL02C17075xxFUGtKs/u6bXBpMMKL2ZeZnwVlFoHlSz BLmiRZRVH/L02YvOHO6Xz4zir+E1JK4vJrgTErqeCu4xp3JNJZSD3qg1iQcRGUQUd36/Va69ziA5L TpBXb4yUJrl5KGXNxF1jWXPhOLJB454JsbjeSPYNjtdgpwebaW47oj5o1u1x8pcsJiKsUnYi3l/r1 EI8BnXGw==; Received: from authenticated user by zero.zsh.org with local id 1lovGS-0006zI-MU; Thu, 03 Jun 2021 21:52:32 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f171.google.com) smtp.remote-ip=209.85.167.171; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-oi1-f171.google.com ([209.85.167.171]:43816) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lovGA-0006ej-0H; Thu, 03 Jun 2021 21:52:15 +0000 Received: by mail-oi1-f171.google.com with SMTP id x196so7379334oif.10 for ; Thu, 03 Jun 2021 14:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hWdTvPhv3/27tQI7IT2rUYcfYAw3uvNsFbrZeA2WpdM=; b=kMviBTwd0BkMBQAIaaRyx4Q7nMdqlnHB1IO3dvMR6b7BwSWlQEHSCda3QXFj0dV9UN xH5zMo18sdaZVq2Chk6JZ0D1529XniOn6F3sHrBP5pWCHX8U7V50CycdNhu6+ToLywbf THqpag6aL4RcSFSpKF3KWDfHdece4CxVwT9lJOSB5URBC0oyIfvlYkbuP0zgiUlfFJnR UCePYMbwB9Rjr0HBouUrEBpUPAPjvspxgXwg7//0ooyUt5hIY3j5lHaD8Jt14uMnGa7q ECtOcsK/xMJq9SNf3AVxw8UR/hNpCJpP8OJhHyPtfTPRIU+MA1vxEh1WC7/FvFlAcN7p x+0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hWdTvPhv3/27tQI7IT2rUYcfYAw3uvNsFbrZeA2WpdM=; b=gX08KJMAczEZ4GRHRgTCYA+elF6M9HUljJjO6lD2Yn99XLQlhA1Q+slk4tUvRrSUSb g9/U+M4Q4jwKGxhZ5YkfxQK76bRwsyntPl2ReYaaK6KPhWkMSacpxXtIIw6fqonfCTe3 /1Vhhk9J9csYacigyWpQS/9ckDx6xAQemOXLvT17wEfkMmDc6syb/Bj+5UwYk1pTIfzc ejdeUViOS/cJcwFQ+RRJIUolRUkRP0CZPnTaNlpHKcBFr+LOykXvz8VfE01Rwp5yr+eJ PJDd+KxfvYOKLKM371PX5dOUSZy0Kh5yiPVizmdPBubvNHr6/nru08oB0/94QGpt7w12 ldmg== X-Gm-Message-State: AOAM5331KjfUe5y8NCtD2LPedLhDxZIxHqo6na3F7kjxEEbHWLWPVw6v 3HZbSaIpCIMwVB5YXcaWDME5FEOubPVnl90NqDGykbEFkeE= X-Google-Smtp-Source: ABdhPJzgq44Wiz7vy3uS+d5AK7jhFy5K8bwkMYeKujSO9rRNQ6VnaENDaLRDj6wmzg4FF6ZKCKACcIgKZTHgcU4ErOc= X-Received: by 2002:aca:d658:: with SMTP id n85mr903790oig.84.1622757132941; Thu, 03 Jun 2021 14:52:12 -0700 (PDT) MIME-Version: 1.0 References: <9b5f772f-2af3-4c9e-a83f-6c6f4496c6be@www.fastmail.com> In-Reply-To: <9b5f772f-2af3-4c9e-a83f-6c6f4496c6be@www.fastmail.com> From: Bart Schaefer Date: Thu, 3 Jun 2021 14:52:01 -0700 Message-ID: Subject: Re: Let run-help filter cmd_args before calling run-help- (was Re: [RFC][PATCH] Try calling command with help flags in run-help) To: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= Cc: Marlon Richert , Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 49009 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 2:46 PM Lawrence Vel=C3=A1zquez wro= te: > > 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. The run-help-ssh function isn't actually in the distribution anywhere except as an example in the doc. You have to copy-paste it into your shell before attempting run-help.