From: Fulbert <fulbert@bluewin.ch>
To: 53268@debbugs.gnu.org
Subject: [bug#53268] [PATCH] bash completion: Fix options completion.
Date: Fri, 14 Jan 2022 20:37:03 +0100 [thread overview]
Message-ID: <YeHQ30DDDTIedAH7@bluewin.ch> (raw)
* 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
next reply other threads:[~2022-01-14 19:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-14 19:37 Fulbert [this message]
2022-01-16 22:50 ` bug#53268: [PATCH] bash completion: Fix options completion Ludovic Courtès
2022-01-17 15:27 ` [bug#53268] " Fulbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YeHQ30DDDTIedAH7@bluewin.ch \
--to=fulbert@bluewin.ch \
--cc=53268@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.