Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > f5c53559634633333447b90e4f42162d > files > 2

bash-completion-2.1-9.mga5.src.rpm

From 7d40458b84a6362f5321cfc4ce7fc684604170f2 Mon Sep 17 00:00:00 2001
From: William Murphy <warrendiogenese@gmail.com>
Date: Mon, 10 Nov 2014 11:43:35 -0800
Subject: [PATCH] Fixed bad array subscript error

---
 bash_completion | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bash_completion b/bash_completion
index ccdafc8..7603b9b 100644
--- a/bash_completion
+++ b/bash_completion
@@ -717,7 +717,7 @@ _init_completion()
         fi
     done
 
-    [[ $cword -eq 0 ]] && return 1
+    [[ $cword -le 0 ]] && return 1
     prev=${words[cword-1]}
 
     [[ ${split-} ]] && _split_longopt && split=true
-- 
2.1.3