From unknown Sun Sep 07 03:08:25 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#53268 <53268@debbugs.gnu.org> To: bug#53268 <53268@debbugs.gnu.org> Subject: Status: [PATCH] bash completion: Fix options completion. Reply-To: bug#53268 <53268@debbugs.gnu.org> Date: Sun, 07 Sep 2025 10:08:25 +0000 retitle 53268 [PATCH] bash completion: Fix options completion. reassign 53268 guix-patches submitter 53268 Fulbert severity 53268 normal tag 53268 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 14 14:37:27 2022 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 To: guix-patches@gnu.org Subject: [PATCH] bash completion: Fix options completion. 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 16 17:50:46 2022 Received: (at 53268-done) by debbugs.gnu.org; 16 Jan 2022 22:50:46 +0000 Received: from localhost ([127.0.0.1]:44427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9EMI-0005U5-9A for submit@debbugs.gnu.org; Sun, 16 Jan 2022 17:50:46 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:57418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9EMH-0005Tt-6U for 53268-done@debbugs.gnu.org; Sun, 16 Jan 2022 17:50:45 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 2EBE52EE; Sun, 16 Jan 2022 23:50:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qG8fTQz6tT76; Sun, 16 Jan 2022 23:50:38 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 3E5B6F8; Sun, 16 Jan 2022 23:50:38 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Fulbert Subject: Re: bug#53268: [PATCH] bash completion: Fix options completion. References: Date: Sun, 16 Jan 2022 23:50:37 +0100 In-Reply-To: (fulbert@bluewin.ch's message of "Fri, 14 Jan 2022 20:37:03 +0100") Message-ID: <87h7a3z45e.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 2EBE52EE X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 53268-done Cc: 53268-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi, Fulbert skribis: > * etc/completion/bash/guix (_guix_complete_option): Fix options > completion for first subcommand. Applied, with an example in the commit log. Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 17 10:27:35 2022 Received: (at 53268-done) by debbugs.gnu.org; 17 Jan 2022 15:27:35 +0000 Received: from localhost ([127.0.0.1]:47637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Tux-0000o3-89 for submit@debbugs.gnu.org; Mon, 17 Jan 2022 10:27:35 -0500 Received: from vimdzmsp-sfwd04.bluewin.ch ([195.186.227.132]:42219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Tuu-0000nn-Uv for 53268-done@debbugs.gnu.org; Mon, 17 Jan 2022 10:27:33 -0500 Received: from [192.168.1.115] ([213.55.244.21]) by vimdzmsp-sfwd04.bluewin.ch Swisscom AG with ESMTPA id 9TunnrVziaH3H9TuonjaTC; Mon, 17 Jan 2022 16:27:26 +0100 X-Bluewin-Spam-Analysis: v=2.4 cv=IqZ9zJzg c=1 sm=1 tr=0 ts=61e58ade a=okETWHrkPlANAx00SlWV7w==:117 a=okETWHrkPlANAx00SlWV7w==:17 a=IkcTkHD0fZMA:10 a=VcTyNkdGZYMIEsac_J0A:9 a=QEXdDO2ut3YA:10 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[213.55.244.21] Epoch[1642433246] X-Bluewin-AuthAs: fulbert@bluewin.ch Message-ID: <16a7877d-7291-6743-6487-82fbf1db768d@bluewin.ch> Date: Mon, 17 Jan 2022 16:27:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: bug#53268: [PATCH] bash completion: Fix options completion. Content-Language: fr To: 53268-done@debbugs.gnu.org References: <87h7a3z45e.fsf@gnu.org> From: Fulbert In-Reply-To: <87h7a3z45e.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfDoyc43oU5nZ5ml3dK5v0VuhdbO1B3DLtJiVDOoDP/33cL1lolbbN87Kbh1d2H8xtd9kJWvcNo0pfmxo1v9xBHYGNJPdbqH/vU3GIqf85iFn9+j53e1b WJvY5tRRLE6iqONvAlCvr4e8aOnGjjdMi5TcVuoEPN1vp6d/0M8fsbUqqCIqDLiW8BC9tPFGbbiEoU9mtGH+hFfVyfFBuMxzSik= X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 53268-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) Hello, On 16/01/2022 23:50, Ludovic Courtès wrote: > Applied, with an example in the commit log. Thanks! Welcome! From unknown Sun Sep 07 03:08:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Feb 2022 12:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator