summaryrefslogtreecommitdiffstats
path: root/Auxiliary/bash-completion/cmake
diff options
context:
space:
mode:
authorFelix Schwitzer <felix.schwitzer@gmx.at>2019-08-16 23:04:54 (GMT)
committerFelix Schwitzer <felix.schwitzer@gmx.at>2019-08-16 23:04:54 (GMT)
commit64aeb520cad530924e1e98582acca24594f3fd4b (patch)
tree0975451de16502bbc67fcc878ac4a1efca6be66e /Auxiliary/bash-completion/cmake
parent7a92fb7bf675005b7d77dc6fdb157409dace52f9 (diff)
downloadCMake-64aeb520cad530924e1e98582acca24594f3fd4b.zip
CMake-64aeb520cad530924e1e98582acca24594f3fd4b.tar.gz
CMake-64aeb520cad530924e1e98582acca24594f3fd4b.tar.bz2
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.
Diffstat (limited to 'Auxiliary/bash-completion/cmake')
-rw-r--r--Auxiliary/bash-completion/cmake4
1 files 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