grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] util/bash-completion: Load scripts on demand


From: Daniel Kiper
Subject: Re: [PATCH] util/bash-completion: Load scripts on demand
Date: Thu, 8 Feb 2024 17:45:49 +0100
User-agent: NeoMutt/20170113 (1.7.2)

On Tue, Jan 30, 2024 at 02:41:10PM +0800, Gary Lin via Grub-devel wrote:
> There are two system directories for bash-completion scripts. One is
> /usr/share/bash-completion/completions and the other is
> /etc/bash_completion.d/. The 'etc' scripts are loaded in advance and
> for backward compatibility while the 'usr' scripts are loaded on demand.
> To load scripts on demand, it requires the corresponding script to
> every command, so the main bash-completion script is split into several
> subscripts for different grub commands. To share the code, the real
> completion functions are still implemented in 'grub', and each
> subscript sources 'grub' and invokes the corresponding function.
>
> Signed-off-by: Gary Lin <glin@suse.com>

Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]