GNU bug report logs - #77181
[PATCH 0/5] gnu: Fix bash completion directories.

Previous Next

Package: guix-patches;

Reported by: 45mg <45mg.writes <at> gmail.com>

Date: Sat, 22 Mar 2025 15:06:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Efraim Flashner <efraim <at> flashner.co.il>
To: 45mg <45mg.writes <at> gmail.com>
Cc: 77181 <at> debbugs.gnu.org, Ian Eure <ian <at> retrospec.tv>
Subject: [bug#77181] [PATCH 0/5] gnu: Fix bash completion directories.
Date: Tue, 25 Mar 2025 17:09:12 +0200
[Message part 1 (text/plain, inline)]
On Sat, Mar 22, 2025 at 05:22:06PM +0000, 45mg wrote:
> Hi Ian,
> 
[...]
> 
> On Guix, we have:
> 
> --8<---------------cut here---------------start------------->8---
> # guix shell pkg-config bash-completion
> 
> [user <at> guix1 ]$ pkg-config --variable=completionsdir bash-completion
> /gnu/store/5774mb64pqw93fpcchndiiq9fh80ngga-bash-completion-2.11/share/bash-completion/completions
> 
> [user <at> guix1 ]$ pkg-config --variable=compatdir bash-completion
> /gnu/store/5774mb64pqw93fpcchndiiq9fh80ngga-bash-completion-2.11/etc/bash_completion.d
> --8<---------------cut here---------------end--------------->8---
> 
> So, it looks like we should ideally be installing into
> share/bash-completion/completions everywhere. etc/bash_completion.d will
> also work, but the former is preferred because completions will be
> loaded on-demand rather than eagerly. There are currently dozens of
> packages using the latter; maybe some of them have a reason to
> eager-load their completions.

I have the following diff I think will be useful.  Let me know what you
think.  We shouldn't need to duplicate the paths in all the packages.

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[guix-shell-completions.diff (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 99 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.