Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1859742rwa; Sun, 21 Aug 2022 19:33:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR4LphTcHeBFLuccSrr27wZHYLripuPnp28ez7aS/Syyy7xcZzdPiEfN3CQM2lCKffI6sLyq X-Received: by 2002:a17:907:a0c6:b0:730:f081:6e8e with SMTP id hw6-20020a170907a0c600b00730f0816e8emr11227536ejc.479.1661135631122; Sun, 21 Aug 2022 19:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661135631; cv=none; d=google.com; s=arc-20160816; b=f4yRgvfthYaqJ/DTSBM608cTjuhHW6d248cqvD/20BwpXeXb0EOy6CcrCJJxClBVUq IXFMwJLy84P7b2lW4bfhf6Qct4lBwZucKJo2l5go/2FwFkGs906lhn+WZMp7JsRxHCVS AC25uOHCQ7JGdipplhFb8CES1+NKKjT2E9xUYQQn9x71UlXFzoayFOe7ug2UyTRZsoxn ak3s56wNyNAXzZXDMCpvo/9CWLx6IwiKGrFVj9CJsTaT5XYaIw3Y08udTKf4JzaqhwHi 1p6E2L3gc6kmXIrCStbFPfj21Gp2dBXUIxpsGn5pmBLPcmGphvxmgpOOi6+Z9t3Av83O mXSA== 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 :message-id:date:subject:to:from:dkim-signature; bh=U9QwhyOc9y/8tJVF9wA4cQnW03q5qtqDDiW1VE/V6yc=; b=oHwCUX1B6sQ1Ihi9uE4YwU4VKK7XvOeA7BpbCgVoh+2U7aSf9ZhvYnuCqU3CbQZMC6 Ku2K5T3KqNtP4rXg+yL+mWAZTvtF6O9PgSW6L1vw7imza1h0u6yzJMlP4M1imrk9jC9O K4Vm0H2WttUNEHgGEof/5lnIMnF4hTjqFU0VtCUkyilwUiUrQraM9gK37qVG2PatXkQt uCSsEACkbxD25xhyYXnrfeV9GEUJlSODJRvbyPJhr8KMtLMc5Sxon8Y3lFddykJZtFwS Rdmzh09OqCcZap+piy+bMErowldbSM+LSDpE/kJArxW8LCWuN7mUr2wD8jphTUTla6KK GrMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rjp.ie header.s=key1 header.b=MENcWjtH; 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 hj1-20020a1709069fc100b0073b20e4b786si8923796ejc.92.2022.08.21.19.33.14; Sun, 21 Aug 2022 19:33:51 -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=MENcWjtH; 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 S232277AbiHVCdL (ORCPT + 99 others); Sun, 21 Aug 2022 22:33:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232072AbiHVCdI (ORCPT ); Sun, 21 Aug 2022 22:33:08 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0D5223156 for ; Sun, 21 Aug 2022 19:33:06 -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=1661135584; 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; bh=U9QwhyOc9y/8tJVF9wA4cQnW03q5qtqDDiW1VE/V6yc=; b=MENcWjtHctpk2Zt2cFReD8KygjYsh54IgaPUJfpOZaRTUZoJlSIi9UcO4zhn5IrAfqoP2M DVUBViAGDBuIvlE5tFtKgbBY1lBcTb2U+D1wAH5tN7C8RHqKYefRqQpf3Q1mXWVd9jpJW3 j/5iqLUTS5FZEJusTQlXKnrqnW/aP8U= From: Ronan Pigott To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ] zsh: drop no more arguments message Date: Sun, 21 Aug 2022 19:32:43 -0700 Message-Id: <20220822023242.18162-1-ronan@rjp.ie> 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. --- 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