all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#53268] [PATCH] bash completion: Fix options completion.
@ 2022-01-14 19:37 Fulbert
  2022-01-16 22:50 ` bug#53268: " Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Fulbert @ 2022-01-14 19:37 UTC (permalink / raw)
  To: 53268

* 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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#53268: [PATCH] bash completion: Fix options completion.
  2022-01-14 19:37 [bug#53268] [PATCH] bash completion: Fix options completion Fulbert
@ 2022-01-16 22:50 ` Ludovic Courtès
  2022-01-17 15:27   ` [bug#53268] " Fulbert
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2022-01-16 22:50 UTC (permalink / raw)
  To: Fulbert; +Cc: 53268-done

Hi,

Fulbert <fulbert@bluewin.ch> skribis:

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

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

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#53268] [PATCH] bash completion: Fix options completion.
  2022-01-16 22:50 ` bug#53268: " Ludovic Courtès
@ 2022-01-17 15:27   ` Fulbert
  0 siblings, 0 replies; 3+ messages in thread
From: Fulbert @ 2022-01-17 15:27 UTC (permalink / raw)
  To: 53268-done

Hello,

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

Welcome!




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-17 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 19:37 [bug#53268] [PATCH] bash completion: Fix options completion Fulbert
2022-01-16 22:50 ` bug#53268: " Ludovic Courtès
2022-01-17 15:27   ` [bug#53268] " Fulbert

Code repositories for project(s) associated with this inbox:

	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.