Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2896548rwa; Mon, 22 Aug 2022 16:23:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR4AnKMTfvBZ/PnAcpmKHBHVedHAC0OjzzDhbuO7Vr2TfHGRwpkP34dbPn9S6WCEOHitYpQz X-Received: by 2002:a05:6402:4010:b0:446:8031:6642 with SMTP id d16-20020a056402401000b0044680316642mr1201793eda.148.1661210611129; Mon, 22 Aug 2022 16:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661210611; cv=none; d=google.com; s=arc-20160816; b=m/aXmqwghK3vfQLzMNfPr72C2TfdL5uGEQRdIjU0ON/FbBCii7zfNmbHsDWMwFbZ4t Zwx9yHBp1M068aCiosWBO197nttSCvfiSfgVSeJOAZp1hzXrWMoUlw716CPK3HcqFZ8R g9y1RhZJrn0CES1P4bgeTiEZ2up/kYPLRSiwZX61DBVyKn6j1kFzmOG/8kTNjx99FZT2 sr5ta1WxVoU8XHR6LW6L3GQ/X2mFUAMxn95CJ0JpNGD4dW/lsNQmJ7U9WgzWl5u4ZMv1 6/gwUThh+9SLUfBt20v5JlcPiGfY/VOw55/BvxLFUgAmxLqOajXxzv5Mzo5IsdYbxlXc w/xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=3oxeDD6XMRAHMm4m+AX+BaZsEtu3GXOKkMCy48j/pNk=; b=ZGfQjXkCEiI2J68bJT8a3Cn6C887DTaXYCXbhy6N8vRgB9XQaTcgGWNKqWp1XaY7Cg +NHuDez8kINsMsf1w7p639aWP0iT2HVEtNWxMnwxGJQKZfOrzwITkSnyim/X2/J3h0dN I4VpwLaGjuCU5sMcHTkuohdj3Ed7Fvn/YbTvrxCu404wcKKGpnEaB3B94gTyt+7y9gLF hsf9fth6itGmfdHyPUeIYK5XYPUFiUPy47DYCZklfBqK7zrN12UG+qKfHpUKH16ChJPg mwXkqKvyiJkDqfNBYfPd2aMbt2atCroJP7VgahQfseqpFnRm+32cEE7N4q2C6pILzoTJ BYxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rjp.ie header.s=key1 header.b=tjTART7m; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=rjp.ie Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c10-20020a05640227ca00b0043c4912e226si684510ede.568.2022.08.22.16.23.02; Mon, 22 Aug 2022 16:23:31 -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=@rjp.ie header.s=key1 header.b=tjTART7m; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=rjp.ie Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238657AbiHVXVl (ORCPT + 99 others); Mon, 22 Aug 2022 19:21:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238614AbiHVXVd (ORCPT ); Mon, 22 Aug 2022 19:21:33 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C420D564DA for ; Mon, 22 Aug 2022 16:21:30 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjp.ie; s=key1; t=1661210488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3oxeDD6XMRAHMm4m+AX+BaZsEtu3GXOKkMCy48j/pNk=; b=tjTART7mFLBPk44JhUupMWG/z7gmFy8Yv0J1AW26j3sCbVpL75t+BwKRMJtAyiIHjPPp/C OEMh7gQwtd4UjxagyU+WB2G80+mtgQTU2Z7SNHm6zqyPEHXgiOkMGPG+jk9k7jaa+dewSk GP2Z7P0m3PRHtcblRKBqc/Aub9rE6f4= From: Ronan Pigott To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v2] zsh: drop no more arguments message Date: Mon, 22 Aug 2022 16:19:10 -0700 Message-Id: <20220822231909.45606-1-ronan@rjp.ie> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rjp.ie X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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 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. Before: $ zstyle ':completion:*:messages' format '%d' $ bluetoothctl connect _message:zformat:42: invalid argument: -J After: $ zstyle ':completion:*:messages' format '%d' $ bluetoothctl connect 31:41:59:26:53:59 -- Bose QuietComfort 35 11:22:33:44:55:66 -- Pixel 5 --- Included an example of the erroneous output and style setting 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