[Pkg-xen-devel] [PATCH 11/13] tools/xl/bash-completion: also complete 'xen'
Hans van Kranenburg
hans at knorrie.org
Mon Feb 11 15:54:32 GMT 2019
H'okay, so...
On 2/11/19 12:42 AM, Hans van Kranenburg wrote:
> We have the `xen` alias for xl in Debian, since in the past it was a
> command that could execute either xl or xm.
>
> Now, it always does xl, so, complete the same stuff for it as we have
> for xl.
> ---
> tools/xl/bash-completion | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/xl/bash-completion b/tools/xl/bash-completion
> index 1db0bdc48e..022119a252 100644
> --- a/tools/xl/bash-completion
> +++ b/tools/xl/bash-completion
> @@ -212,6 +212,6 @@ _xl()
> fi
> fi
> } &&
> -complete -F _xl xl
> +complete -F _xl xl xen
This apparently does not do the job completely. I'm testing things and
what I see is that:
1. xl command does give completion
2. xen command does not, until I trigger it one time for xl, and then
afterwards it does.
What I see in some other files is that the complete line at the end has
both commands, like xl xen above, but there's a symlink for the second
command back to the same script:
-# ll /usr/share/bash-completion/completions/yp*
lrwxrwxrwx 1 root root 7 Dec 22 01:34
/usr/share/bash-completion/completions/ypcat -> ypmatch
-rw-r--r-- 1 root root 768 Dec 22 01:34
/usr/share/bash-completion/completions/ypmatch
Is this the right way to solve this problem?
>
> # ex: filetype=sh
>
K
More information about the Pkg-xen-devel
mailing list