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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53268 in the body.
You can then email your comments to 53268 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#53268; Package guix-patches. (Fri, 14 Jan 2022 19:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fulbert <fulbert <at> bluewin.ch>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 14 Jan 2022 19:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sun, 16 Jan 2022 22:51:01 GMT) Full text and rfc822 format available.

Notification sent to Fulbert <fulbert <at> bluewin.ch>:
bug acknowledged by developer. (Sun, 16 Jan 2022 22:51:01 GMT) Full text and rfc822 format available.

Message #10 received at 53268-done <at> debbugs.gnu.org (full text, mbox):

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’.




Information forwarded to guix-patches <at> gnu.org:
bug#53268; Package guix-patches. (Mon, 17 Jan 2022 15:28:02 GMT) Full text and rfc822 format available.

Message #13 received at 53268-done <at> debbugs.gnu.org (full text, mbox):

From: Fulbert <fulbert <at> bluewin.ch>
To: 53268-done <at> debbugs.gnu.org
Subject: Re: bug#53268: [PATCH] bash completion: Fix options completion.
Date: Mon, 17 Jan 2022 16:27:25 +0100
Hello,

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

Welcome!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 15 Feb 2022 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 69 days ago.

Previous Next


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