GNU bug report logs - #53268
[PATCH] bash completion: Fix options completion.

Previous Next

Package: guix-patches;

Reported by: Fulbert <fulbert <at> bluewin.ch>

Date: Fri, 14 Jan 2022 19:38:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#53268: closed ([PATCH] bash completion: Fix options completion.)
Date: Sun, 16 Jan 2022 22:51:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 16 Jan 2022 23:50:37 +0100
with message-id <87h7a3z45e.fsf <at> gnu.org>
and subject line Re: bug#53268: [PATCH] bash completion: Fix options completion.
has caused the debbugs.gnu.org bug report #53268,
regarding [PATCH] bash completion: Fix options completion.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
53268: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=53268
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Fulbert <fulbert <at> bluewin.ch>
To: guix-patches <at> gnu.org
Subject: [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



[Message part 3 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: Fulbert <fulbert <at> bluewin.ch>
Cc: 53268-done <at> debbugs.gnu.org
Subject: Re: bug#53268: [PATCH] bash completion: Fix options completion.
Date: Sun, 16 Jan 2022 23:50:37 +0100
Hi,

Fulbert <fulbert <at> 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’.


This bug report was last modified 3 years and 204 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.