Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2883757rwa; Mon, 22 Aug 2022 16:07:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ha9IZbUm4vT54RgHYFvZXGo7A3n7Fh8jqYxYRjtUCO6JS3UzGvDv2RI3/KzGbgT7zbsSx X-Received: by 2002:a05:6402:5208:b0:446:a318:5338 with SMTP id s8-20020a056402520800b00446a3185338mr1131754edd.343.1661209640622; Mon, 22 Aug 2022 16:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661209640; cv=none; d=google.com; s=arc-20160816; b=Zqr2F5gfUFkkaE0lD5beFdKptCypwPUY5OwTQdbsCESvY895oxf67upfLkra/39ZC1 0ea4lKA6m0+jrH42ymlmgJqyZphRxZxaR2TUChPpUc+Nq0/Ql+nNrKoTrXEb0B0fWgoE GVSYNTvLX0mYiMlaDNiODR0xDohhm3XcSGnncWSQY2H5DY6YIy7adNhhb3aQ/l8B8iHK J0bpxd0JSbXwDqeiCb3h80RuCbmdVNS1M1uY39vMX4Go5FC+emLYJJ9XJp1MRJPKS7lA L8hdVWYd+5KdUR3n9GAHeV0f5ez3l9TLoM0hV870DqYr9u/SDXHUu7k7KEMjQ4+4x5S+ BqUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wyn4yL3+v1cpJ9zWPsCJf33Bou9D3gKSFGHzDQH0GAg=; b=PpyCf1GRvNgzHdrFEGetVGwsxAtdzmkAsYghEpP4UzBN7UpvSLX3Q/ArUK+Qe3E9B/ orIBPVDDxGv9XB9ya2lQY0LsOby7ojJxTORzCkdZmDwDSkZofzwcnOfOxgSF1IcpTukv +DY9582DuIwqhJsz0bB5rK5QPqEJLETPOnkKUEtNv+L+Cncbm6xon+ZJekqliCpg7971 YChMPbJSZXtydOgi6M8qMUrdDgJX+qQ1sIVU2waawQtXUGoxLvWo3RPycbEpir4o4j+l Z+1VLAx/dOSnYhjXrScMmElsw515v7F47J4haP4PTHO5S8m8HUo7H4ATdebA+OzMseQ9 FZZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Xl+sXzgD; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a50c04a000000b0043bfb069e20si584334edd.458.2022.08.22.16.06.51; Mon, 22 Aug 2022 16:07:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Xl+sXzgD; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230393AbiHVWzT (ORCPT + 99 others); Mon, 22 Aug 2022 18:55:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232584AbiHVWzQ (ORCPT ); Mon, 22 Aug 2022 18:55:16 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1A9154CB8 for ; Mon, 22 Aug 2022 15:55:15 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id z6so17294985lfu.9 for ; Mon, 22 Aug 2022 15:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=wyn4yL3+v1cpJ9zWPsCJf33Bou9D3gKSFGHzDQH0GAg=; b=Xl+sXzgD9tm+IwmLEFb/A5mnDDtU5tWMZ+li6MYE6SavxqiqThkeqRC0mmPu8L3RhA ehXRfSGjmH26dtUU8a3rUq+HKA2zX1MPQvXUdk85YnTOXPVSvw2rme8HHprkYwWHPXFn /IzRtgPkHYYVyfhCr8ajwPhe2qb+G6mVYPRaPhhn5+W0YTRGkb48Owkr4ddRttHpFlNa WKXqh97eZk+8DCbJKv+Dwa74k7T3XM3mKVHRgHAidOE099+JHmhSGrTTwdp8o1GWq/rQ fAMWSwoDYZ925d+7A3hWLHIJ5BbsIcUeUBCda7+GTuPEBrzI+tzR5ujyAKgRn/rQsKXN oMQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=wyn4yL3+v1cpJ9zWPsCJf33Bou9D3gKSFGHzDQH0GAg=; b=AKcO3vYaO70pSqwCBa0JDaS7WpcGLy7+Z/l4dapDjNt5Fyfia4rFkEd7PsxXW5dBA7 kVVLn3YL7AvIIpvvOifFhQNmqP+xIfcm0/O+XgRSdBBg1HytKm+F91cZrr5oRugm7f5R O/pxm1VnEVRgc1oXH40wlrxLq5d+iQF6FNwckE6Yu9SSVZO6Pdk+1CV5bNLoS4zCV3Jq 8yTYtX+iMmnZWqYR6B8I9A5zoURn1XKSYG36Zfo9FC0LGGSCBWueY+6Z7wDs6T4M1NsG jaP1nFEW0Zea9UVFuBsO61TwmOHcCQtfE68ET4PG72y5tFQxi8RLvyHI2ArJgCgOOorw bmPQ== X-Gm-Message-State: ACgBeo1y31EtzGyBst5h695KMYDPPtMIijh4KEmrMT/jyXPE7CszzvPv TcGt7tJzCn9qYKNXg2tKYmA5K0Mdmuy3Tj5daEASVc9D X-Received: by 2002:a05:6512:1044:b0:48b:49b1:cc85 with SMTP id c4-20020a056512104400b0048b49b1cc85mr7783908lfb.57.1661208913952; Mon, 22 Aug 2022 15:55:13 -0700 (PDT) MIME-Version: 1.0 References: <20220822023242.18162-1-ronan@rjp.ie> In-Reply-To: <20220822023242.18162-1-ronan@rjp.ie> From: Luiz Augusto von Dentz Date: Mon, 22 Aug 2022 15:55:02 -0700 Message-ID: Subject: Re: [PATCH BlueZ] zsh: drop no more arguments message To: Ronan Pigott Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Ronan, On Sun, Aug 21, 2022 at 7:33 PM Ronan Pigott wrote: > > This usage of the _message as a completion function is invalid, and > will result in an error if invoked by _arguments when the user has a > format style set for completion messages. > > We can just drop this message, since it is not necessary. It might be better to include the output of zsh when it fails to auto-complete, or actually a pre and post patch output. > --- > completion/zsh/_bluetoothctl | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/completion/zsh/_bluetoothctl b/completion/zsh/_bluetoothctl > index bf35e503e..610ca2b8d 100644 > --- a/completion/zsh/_bluetoothctl > +++ b/completion/zsh/_bluetoothctl > @@ -68,8 +68,7 @@ _bluetoothctl() { > '(info)'{-m,--monitor}'[Enable monitor output]' \ > + 'command' \ > '(info):command:->command' \ > - '(info):: :->argument' \ > - ': :_message "no more arguments"' > + '(info):: :->argument' > > if [[ $state == "command" ]]; then > _describe -t commands 'command' all_commands > -- > 2.37.2 > -- Luiz Augusto von Dentz