Subject: bug#53268: closed (Re: bug#53268: [PATCH] bash completion: Fix options completion.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 16 Jan 2022 22:51:01 +0000

Your bug report

#53268: [PATCH] bash completion: Fix options completion.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
53268: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=53268
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#53268: [PATCH] bash completion: Fix options completion.
From: Ludovic Courtès <[email-masked]>
To: Fulbert <[email-masked]>
Cc: [email-masked]
Date: Sun, 16 Jan 2022 23:50:37 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Fulbert <[email-masked]> skribis:

> * etc/completion/bash/guix (_guix_complete_option): Fix options
> completion for first subcommand.

Applied, with an example in the commit log.  Thanks!

Ludo’.

Subject: [PATCH] bash completion: Fix options completion.
From: Fulbert <[email-masked]>
To: [email-masked]
Date: Fri, 14 Jan 2022 20:37:03 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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