Merge topic 'bash-completion-ctest-cpack' into release-3.30

3889640e8b Auxiliary: Modernize bash completion for ctest and cpack

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9590
This commit is contained in:
Brad King
2024-06-10 15:51:02 +00:00
committed by Kitware Robot
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -3,7 +3,9 @@
_cpack()
{
local cur prev words cword
if type -t _init_completion >/dev/null; then
if type -t _comp_initialize >/dev/null; then
_comp_initialize -n = || return
elif type -t _init_completion >/dev/null; then
_init_completion -n = || return
else
# manual initialization for older bash completion versions
+3 -1
View File
@@ -3,7 +3,9 @@
_ctest()
{
local cur prev words cword
if type -t _init_completion >/dev/null; then
if type -t _comp_initialize >/dev/null; then
_comp_initialize -n = || return
elif type -t _init_completion >/dev/null; then
_init_completion -n = || return
else
# manual initialization for older bash completion versions