Merge topic 'bash-completion-fix-E-lookup'

fe7f117a bash-completion: Fix cmake -E lookup
This commit is contained in:
Brad King 2016-08-08 10:02:15 -04:00 committed by CMake Topic Stage
commit 9bb2faf62a
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ _cmake()
;;
-E)
COMPREPLY=( $( compgen -W "$( cmake -E help |& sed -n \
'/^ /{s|^ \([^ ]\{1,\}\) .*$|\1|;p}' 2>/dev/null )" \
'/^ [^ ]/{s|^ \([^ ]\{1,\}\) .*$|\1|;p}' 2>/dev/null )" \
-- "$cur" ) )
return
;;