From 48cb388ead09794aae01328d83620e10a8f7636b Mon Sep 17 00:00:00 2001 From: Eric NOULARD Date: Fri, 10 Jun 2016 15:28:05 +0200 Subject: [PATCH] bash-completion: Fix cmake --help-policy lookup --- Auxiliary/bash-completion/cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Auxiliary/bash-completion/cmake b/Auxiliary/bash-completion/cmake index 6997d47e6..60611296e 100644 --- a/Auxiliary/bash-completion/cmake +++ b/Auxiliary/bash-completion/cmake @@ -132,8 +132,8 @@ _cmake() return ;; --help-policy) - COMPREPLY=( $( compgen -W '$( cmake --help-policies 2>/dev/null | - grep "^ CMP" 2>/dev/null )' -- "$cur" ) ) + COMPREPLY=( $( compgen -W '$( cmake --help-policy-list 2>/dev/null | + grep -v "^cmake version " )' -- "$cur" ) ) return ;; --help-property)