From e35deac9e7379605c0e3918e74a6d153861a4aa2 Mon Sep 17 00:00:00 2001 From: Fulbert Date: Fri, 14 Jan 2022 20:37:03 +0100 Subject: bash completion: Fix options completion. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes, for example, "guix import pypi --", which would previously fail to show '--recursive'. * etc/completion/bash/guix (_guix_complete_option): Fix options completion for first subcommand. Signed-off-by: Ludovic Courtès --- etc/completion/bash/guix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/completion/bash') 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="" -- cgit 1.4.1