[prev in list] [next in list] [prev in thread] [next in thread]
List: grub-devel
Subject: Re: [PATCH] util/bash-completion: Load scripts on demand
From: Daniel Kiper <dkiper () net-space ! pl>
Date: 2024-02-08 16:45:49
Message-ID: 20240208164549.y2vks55lp4xy6gzc () tomti ! i ! net-space ! pl
[Download RAW message or body]
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
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic