Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: [news item review] bash-completion-2.1-r90, version 2
Date: Tue, 11 Nov 2014 11:21:40
Message-Id: pan$6d1d9$77ef14bf$a6f30192$bda549db@cox.net
In Reply to: Re: [gentoo-dev] [news item review] bash-completion-2.1-r90, version 2 by "Michał Górny"
1 Michał Górny posted on Tue, 11 Nov 2014 11:03:03 +0100 as excerpted:
2
3 > Dnia 2014-11-11, o godz. 09:53:58 Marc Schiffbauer <mschiff@g.o>
4 > napisał(a):
5 >
6 >> * Michał Górny schrieb am 10.11.14 um 22:18 Uhr:
7 >> >Hello, developers.
8 >> >
9 >> >I'm planning to commit this news item before >=2.1-r90 goes stable.
10 >> >I have rewritten the message to be more user-oriented like Rich
11 >> >suggested (big thanks to you!) and added a paragraph about loading
12 >> >bashcomp in bashrc.
13 >> >
14 >> >Please review.
15 >>
16 >> Looks good to me, but to remove "stale symlinks" you need to add the -L
17 >> option to find. Or write just "symlinks", because like this it will
18 >> remove *all* symlinks.
19 >
20 > Well, the meaning was 'all symlinks since they are stale now'. I will
21 > try to reword it.
22
23 Note that some users (including me) have symlinks in
24 /etc/bash_completion.d/ that point to their own completions in
25 /usr/local/share/bash_completion/ or the like.
26
27 Now I don't claim to know much about creating completions, but
28 for instance, many of my completions were for emerge stubs
29 (ea for emerge --ask, etc), so I was able to simply source the gentoo
30 completion in my own, then use emerge's completion function for my stubs.
31
32 With this update I had to figure out enough about completions to figure
33 out how to update mine, and I've already done so.
34
35 But, the symlinks pointing to my completions in /usr/local are most
36 assuredly *NOT* stale, neither will remerging anything make them so.
37
38 So I don't want to remove those symlinks, or I'd lose the connection to
39 my own completions (presuming the normal bash completion doesn't look in
40 /usr/local/share/bash_completion for them... I never claimed I to be a
41 bash-completion wizard, only to have hacked up something that seems to
42 work, and I want it to STAY working).
43
44 So if indeed all installed symlinks should be stale at that point, then
45 the suggested -L -type l -delete would be a good change, as it wouldn't
46 remove any non-stale symlinks users had put there themselves.
47
48 --
49 Duncan - List replies preferred. No HTML msgs.
50 "Every nonfree program has a lord, a master --
51 and if you use the program, he is your master." Richard Stallman

Replies