[cmake-developers] fix for older bash-completion

Gaetan Lehmann gaetan.lehmann at gmail.com
Wed Apr 22 09:36:10 EDT 2015


Here is an updated patch.

Thanks,

Gaëtan

2015-04-22 15:05 GMT+02:00 Brad King <brad.king at kitware.com>:

> On 04/22/2015 08:23 AM, Gaetan Lehmann wrote:
> > Here is a patch for older bash-completion, like the default
> > one used in homebrew.
>
> Thanks.  Rather than skipping _init_completion altogether, please
> use it conditionally with something like
>
>  if t=$(type -t _init_completion); then
>    _init_completion
>  else
>    # manual initialization for older bash completion versions
>  fi
>
> This way it can do the initialization steps known for older
> versions but still do everything that newer versions want.
>
> Thanks,
> -Brad
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150422/8c6ed457/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-for-older-bash-completion.patch
Type: application/octet-stream
Size: 2479 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150422/8c6ed457/attachment.obj>


More information about the cmake-developers mailing list