From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MM3MISfR4WEOeAAAgWs5BA (envelope-from ) for ; Fri, 14 Jan 2022 20:38:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gEspHyfR4WE7FAEA9RJhRA (envelope-from ) for ; Fri, 14 Jan 2022 20:38:15 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 227271600E for ; Fri, 14 Jan 2022 20:38:15 +0100 (CET) Received: from localhost ([::1]:50078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8SOs-0005H2-91 for larch@yhetil.org; Fri, 14 Jan 2022 14:38:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8SOh-0005GN-9H for guix-patches@gnu.org; Fri, 14 Jan 2022 14:38:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8SOg-0004si-Q8 for guix-patches@gnu.org; Fri, 14 Jan 2022 14:38:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8SOg-0002w1-Io for guix-patches@gnu.org; Fri, 14 Jan 2022 14:38:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53268] [PATCH] bash completion: Fix options completion. Resent-From: Fulbert Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 Jan 2022 19:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53268 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53268@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164218904711227 (code B ref -1); Fri, 14 Jan 2022 19:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Jan 2022 19:37:27 +0000 Received: from localhost ([127.0.0.1]:38189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8SO7-0002v1-7t for submit@debbugs.gnu.org; Fri, 14 Jan 2022 14:37:27 -0500 Received: from lists.gnu.org ([209.51.188.17]:51726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8SO4-0002up-NN for submit@debbugs.gnu.org; Fri, 14 Jan 2022 14:37:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8SO4-0005FW-Er for guix-patches@gnu.org; Fri, 14 Jan 2022 14:37:24 -0500 Received: from vimdzmsp-sfwd02.bluewin.ch ([195.186.227.131]:39516) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8SO1-0004nI-QL for guix-patches@gnu.org; Fri, 14 Jan 2022 14:37:23 -0500 Received: from bluewin.ch ([213.55.244.21]) by vimdzmsp-sfwd02.bluewin.ch Swisscom AG with ESMTPA id 8SNjn9EDlMTar8SNkneIwp; Fri, 14 Jan 2022 20:37:05 +0100 X-Bluewin-Spam-Analysis: v=2.4 cv=S426fKgP c=1 sm=1 tr=0 ts=61e1d0e1 a=okETWHrkPlANAx00SlWV7w==:117 a=IkcTkHD0fZMA:10 a=SoXXrJ7_yao_I8eGSXcA:9 a=QEXdDO2ut3YA:10 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[213.55.244.21] Epoch[1642189025] X-Bluewin-AuthAs: fulbert@bluewin.ch Date: Fri, 14 Jan 2022 20:37:03 +0100 From: Fulbert Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-CMAE-Envelope: MS4xfBxlmRzCMWgTdt/Zv2GiWU9W8e4WJTls9CmabWfEFXgITBAbPTwiFsXH23rOXAWdw3ICbfjub/IOcwOj6yGyMox1PWa7my1Nn0sd1z5IvByf1G4PEi4V mpy7TeIbAHz0G+8m4S0+bCyJfncsizv3LLrctUJaw0ms78kYkhtAn3HhPZJxDbWCMfn2FCqaVU9fxw== Received-SPF: pass client-ip=195.186.227.131; envelope-from=fulbert@bluewin.ch; helo=vimdzmsp-sfwd02.bluewin.ch X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642189095; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=G6vNEzq2LqCSKgbldZVaxEUCYpJgyXQA5xA0jvsukk8=; b=IRyZNpQRz4NTTPOLQI+FM8xGj1QRLLk7BhiomeYPRkcmdlVGxrB4ikis8PPUW+qGFTWBWF YFzJ9XVhLKCEMMt8f1zT7IsDvwDIUm+chxNPrKVD7/lRKm1a/tUYAGumNwsdlcAxZ7ubw0 PdMiYEYhA+R03pwwgpQX7dtRpbW7CIhtdYAIqxl3fexGJRMeNEsWHWVyDcIhP0m8JwW+dk Inn/Z2KHG6l0QVVZxrcey/VL7Rl4fVeI0YgRBTK/Fo3s42uZA2NvnSvbVMHjeNR833eCmJ YkVhfaCvnHY9kkaJyW50E7AFyYcV7ce7cDy4dI+83C8N01Aq70d3HDC+pq5Lyw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642189095; a=rsa-sha256; cv=none; b=OhyGrtnlGdx84mQkDjmxca3K/P82Kk8sQ0biiy7FL3udlAAqDOFuonpRcDFtrYhktlxgri 5ixMOxw5lORKkwinlWYvG3woT+QvEPujHNzp+SMQ1shAwKGGHf0QTTE5SWvtcctUxmo9a5 wGbyJVd4blTy8gYbJqDkKAYBCyWA8PVljqsNRY0V8Ts5AkjRHu6NWRfXTvUYxmz8y1TwIp SGL0OrDexzObsS4ck2IRQTcocOBGDaJAZpT+EIflQRrCe3Ni7lMI7hiOrp8gnLY85mr6rw VoV3K12mYdVCsWA12uHTL4Q8KxcnoLGj8fnlU6bcQi3l93HsnBBGgsW92brGxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.42 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 227271600E X-Spam-Score: -3.42 X-Migadu-Scanner: scn1.migadu.com X-TUID: Kw/ft9nzHslc * etc/completion/bash/guix (_guix_complete_option): Fix options completion for first subcommand. --- etc/completion/bash/guix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix index f262d4d95a..38fb490cb3 100644 --- a/etc/completion/bash/guix +++ b/etc/completion/bash/guix @@ -73,7 +73,7 @@ _guix_complete_option () local command="${COMP_WORDS[$1]}" local subcommand="${COMP_WORDS[$(($1 + 1))]}" - if [ $1 -le 1 ] + if [ $1 -eq 0 ] then command="" subcommand="" -- 2.34.0