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 25721 invoked from network); 27 Sep 2021 15:55:19 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Sep 2021 15:55:19 -0000 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:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:Reply-To:Cc: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=lGTJRzzadVYOIjw1LErlBUsJOb5+e1Qf+UzOkPZrn4w=; b=ZVmu8Q6v6D/ve/BZ/v4c7VksUe UxEysdBG7ngPbxwbOelvP4pAXdtkYGFADq0J4QSDPMTzcaFhu3M5sgoOY1MtMK6Lbj10jYyCdmB4K 5fsv3w6THCFvvZeXSQGiqrno/i7q4hLV9mSSCy7DdadDe5ZmwpstjXgubA0EgLzumpVIKsfsmJuEF wnHCR/9Y/gel73vV9DqtKNt6eVt9AbK1mahg1I6OfodjFPAZYSvi+PgWeejDNkA6fE6i3lHJ4jgQP WSvVpxgRZ/zSqZZTz4QYJQtH5eweAdr35K+LfjZFEl98vZB/o3oJ6RN0ZeuHjVgCRRi4p2f+j8sRm lQ0Z5oQQ==; Received: from authenticated user by zero.zsh.org with local id 1mUsyN-0009nj-Bp; Mon, 27 Sep 2021 15:55:19 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mUsy8-000829-5O; Mon, 27 Sep 2021 15:55:04 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.94.2) (envelope-from ) id 1mUsy7-000CGj-6E; Mon, 27 Sep 2021 17:55:03 +0200 In-reply-to: From: Oliver Kiddle References: <20210926084347.9927-1-danielsh@tarpaulin.shahaf.local2> <20210926084347.9927-3-danielsh@tarpaulin.shahaf.local2> To: Daniel Shahaf , Zsh hackers list Subject: Re: [PATCH 3/4] docs: _wanted: Clarify the example and point to another one. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <47163.1632758103.1@hydra> Date: Mon, 27 Sep 2021 17:55:03 +0200 Message-ID: <47164-1632758103.190051@NBUG.TDW3.g63k> X-Seq: 49453 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: Bart Schaefer wrote: > On Sun, Sep 26, 2021 at 1:47 AM Daniel Shahaf wrote: > > > > - compadd matches...) > > + compadd -- var(match1) var(match2)...) > > Hmm ... I'm uncertain about using var() inside example(). This is > going to render in "info" as Also, note that listing no matches at all with compadd is still a completely valid compadd command. This can be useful because you might generate the list of candidate matches from a command and pass the list straight to compadd without first checking whether any were generated. Doesn't this updated usage imply that there must be at least one? Oliver