Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XxgWI-0002aV-DO for mharc-grub-devel@gnu.org; Sun, 07 Dec 2014 13:25:22 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxgW8-0002Zc-N3 for grub-devel@gnu.org; Sun, 07 Dec 2014 13:25:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XxgW1-0007yV-7C for grub-devel@gnu.org; Sun, 07 Dec 2014 13:25:12 -0500 Received: from plane.gmane.org ([80.91.229.3]:56898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxgW1-0007qd-0M for grub-devel@gnu.org; Sun, 07 Dec 2014 13:25:05 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XxgVy-0002pU-QB for grub-devel@gnu.org; Sun, 07 Dec 2014 19:25:02 +0100 Received: from ip-178-200-226-231.hsi07.unitymediagroup.de ([178.200.226.231]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Dec 2014 19:25:02 +0100 Received: from jlec by ip-178-200-226-231.hsi07.unitymediagroup.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Dec 2014 19:25:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: grub-devel@gnu.org From: Justin Subject: Re: [PATCH] bash-completion: Remove obsolete usage of 'have' function Date: Sun, 7 Dec 2014 18:23:13 +0000 (UTC) Message-ID: References: <1417836143-14836-1-git-send-email-floppym@gentoo.org> <20141206095951.269bdf8c@opensuse.site> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 178.200.226.231 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2241.0 Safari/537.36) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2014 18:25:20 -0000 Andrei Borzenkov gmail.com> writes: > > В Fri, 5 Dec 2014 22:22:23 -0500 > Mike Gilbert gentoo.org> пишет: > > > Recent versions of bash-completion do not provide the 'have' function. > > It still does as of today GIT. > # Backwards compatibility for compat completions that use have(). # @deprecated should no longer be used; generally not needed with dynamically # loaded completions, and _have is suitable for runtime use. have() { unset -v have _have && have=yes } All major Linux distributions are using bash-completion version which support dynamically loaded completions. Therefor we should cleanup shipped bash-completions. > > To keep things simple, this patch just removes it completely. > > No, that is not what was intended when 'have' was deprecated. You should > put completion for each command in separate function which is then > autoloaded on demand. It was intended that you have one file (or a symlink) with the name of the command which will be completed. That means dropping all have and pointing symlinks with all support completions will fix it. Or how would you update to recent bash-completion? Justin