Gentoo Archives: gentoo-dev

From: Joshua Kinard <kumba@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] bash-completion-2.1-r1 once again
Date: Tue, 26 Aug 2014 11:14:02
Message-Id: 53FC6BF1.9050508@gentoo.org
In Reply to: [gentoo-dev] bash-completion-2.1-r1 once again by "Michał Górny"
1 On 08/26/2014 06:51, Michał Górny wrote:
2 > Hello, developers and users.
3 >
4 > I would like to champion the goal of bringing bash-completion-2.1-r1 to
5 > Gentoo. As far as I can see, nobody's been working on this since
6 > the first failed attempt has been reverted.
7 >
8 > Firstly, I would like to describe the differences between the old
9 > and the new system.
10 >
11 >
12 > The old system
13 > --------------
14 >
15 > compatdir = /etc/bash_completion.d
16 > oldcompdir = /usr/share/bash-completion
17 >
18 > 1. Completions and other completion-like files are installed
19 > in $oldcompdir.
20 >
21 > 2. On start, bash sources all files from $compatdir, explicitly
22 > enabling completions inside them.
23 >
24 > 3. 'eselect bashcomp' enables completions through linking files
25 > from $oldcompdir to $compatdir.
26 >
27 >
28 > What's wrong with the old system?
29 > ---------------------------------
30 >
31 > Well, the major issue with the old system is that for completion to
32 > work, it needs to loaded at start of bash. The more completions you
33 > enable, the more files bash needs to source and the more memory
34 > consumed.
35 >
36 > If you enable all completions by default, bash would need to load a lot
37 > of functions, most of them not even used during the session.
38 >
39 >
40 > The new system
41 > --------------
42 >
43 > completionsdir = /usr/share/bash-completion/completions
44 >
45 [snip]
46
47 I take it systems with /usr mounted separately won't be affected by this
48 change? Do we need to retain the /etc/bash_completion.d compatdir in any form?
49
50 --
51 Joshua Kinard
52 Gentoo/MIPS
53 kumba@g.o
54 4096R/D25D95E3 2011-03-28
55
56 "The past tempts us, the present confuses us, the future frightens us. And
57 our lives slip away, moment by moment, lost in that vast, terrible in-between."
58
59 --Emperor Turhan, Centauri Republic

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] bash-completion-2.1-r1 once again "Michał Górny" <mgorny@g.o>