[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#53268] [PATCH] bash completion: Fix options completion.
From: |
Fulbert |
Subject: |
[bug#53268] [PATCH] bash completion: Fix options completion. |
Date: |
Fri, 14 Jan 2022 20:37:03 +0100 |
* 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
- [bug#53268] [PATCH] bash completion: Fix options completion.,
Fulbert <=