Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 686590
Collapse All | Expand All

(-)a/bash-completion-2.1_p20141224-blacklist-support.patch (-3 / +3 lines)
Lines 6-18 index 8c9fc81..5064733 100644 Link Here
6
 # set up dynamic completion loading
6
 # set up dynamic completion loading
7
 _completion_loader()
7
 _completion_loader()
8
 {
8
 {
9
+    if grep -F -x -q -s "${1##*/}" /etc/bash/completion.blacklist; then
9
+    if command grep -F -x -q -s "${1##*/}" /etc/bash/completion.blacklist; then
10
+        if ! grep -F -x -q -s "${1##*/}" ~/.config/bash_completion.whitelist; then
10
+        if ! command grep -F -x -q -s "${1##*/}" ~/.config/bash_completion.whitelist; then
11
+            complete -F _minimal "$1" && return 124
11
+            complete -F _minimal "$1" && return 124
12
+            return 1
12
+            return 1
13
+        fi
13
+        fi
14
+    fi
14
+    fi
15
+    if grep -F -x -q -s "${1##*/}" ~/.config/bash_completion.blacklist; then
15
+    if command grep -F -x -q -s "${1##*/}" ~/.config/bash_completion.blacklist; then
16
+        complete -F _minimal "$1" && return 124
16
+        complete -F _minimal "$1" && return 124
17
+        return 1
17
+        return 1
18
+    fi
18
+    fi

Return to bug 686590