[PATCH] bash completion: Fix options completion.

DoneSubmitted by Fulbert.
Details
2 participants
  • Fulbert
  • Ludovic Courtès
Owner
unassigned
Severity
normal
F
F
Fulbert wrote on 14 Jan 20:37 +0100
(address . guix-patches@gnu.org)
YeHQ30DDDTIedAH7@bluewin.ch
* 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(-)

Toggle diff (15 lines)
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
L
L
Ludovic Courtès wrote on 16 Jan 23:50 +0100
(name . Fulbert)(address . fulbert@bluewin.ch)(address . 53268-done@debbugs.gnu.org)
87h7a3z45e.fsf@gnu.org
Hi,

Fulbert <fulbert@bluewin.ch> skribis:

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

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

Ludo’.
Closed
F
F
Fulbert wrote on 17 Jan 16:27 +0100
(address . 53268-done@debbugs.gnu.org)
16a7877d-7291-6743-6487-82fbf1db768d@bluewin.ch
Hello,

On 16/01/2022 23:50, Ludovic Courtès wrote:
Toggle quote (2 lines)
> Applied, with an example in the commit log. Thanks!

Welcome!
Closed
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send email to 53268@debbugs.gnu.org