From 64aeb520cad530924e1e98582acca24594f3fd4b Mon Sep 17 00:00:00 2001 From: Felix Schwitzer Date: Sat, 17 Aug 2019 01:04:54 +0200 Subject: bash-completion: silent cmake -D lookup The completion for -D tries to read the cache via 'cmake -LA -N', but this prints a warning. Silent the lookup by redirecting this warning to null. --- 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 638b1c4..d8d2c86 100644 --- a/Auxiliary/bash-completion/cmake +++ b/Auxiliary/bash-completion/cmake @@ -76,8 +76,8 @@ _cmake() compopt -o nospace else # complete variable names - COMPREPLY=( $( compgen -W '$( cmake -LA -N | tail -n +2 | - cut -f1 -d: )' -P "$prefix" -- "$cur" ) ) + COMPREPLY=( $( compgen -W '$( cmake -LA -N 2>/dev/null | + tail -n +2 | cut -f1 -d: )' -P "$prefix" -- "$cur" ) ) compopt -o nospace fi return -- cgit v0.12