Michał Górny posted on Tue, 11 Nov 2014 11:03:03 +0100 as excerpted:

> Dnia 2014-11-11, o godz. 09:53:58 Marc Schiffbauer <msch...@gentoo.org>
> napisał(a):
> 
>> * Michał Górny schrieb am 10.11.14 um 22:18 Uhr:
>> >Hello, developers.
>> >
>> >I'm planning to commit this news item before >=2.1-r90 goes stable.
>> >I have rewritten the message to be more user-oriented like Rich
>> >suggested (big thanks to you!) and added a paragraph about loading
>> >bashcomp in bashrc.
>> >
>> >Please review.
>> 
>> Looks good to me, but to remove "stale symlinks" you need to add the -L
>> option to find. Or write just "symlinks", because like this it will
>> remove *all* symlinks.
> 
> Well, the meaning was 'all symlinks since they are stale now'. I will
> try to reword it.

Note that some users (including me) have symlinks in 
/etc/bash_completion.d/ that point to their own completions in
/usr/local/share/bash_completion/ or the like.

Now I don't claim to know much about creating completions, but
for instance, many of my completions were for emerge stubs
(ea for emerge --ask, etc), so I was able to simply source the gentoo 
completion in my own, then use emerge's completion function for my stubs.

With this update I had to figure out enough about completions to figure 
out how to update mine, and I've already done so.

But, the symlinks pointing to my completions in /usr/local are most 
assuredly *NOT* stale, neither will remerging anything make them so.

So I don't want to remove those symlinks, or I'd lose the connection to 
my own completions (presuming the normal bash completion doesn't look in 
/usr/local/share/bash_completion for them... I never claimed I to be a 
bash-completion wizard, only to have hacked up something that seems to 
work, and I want it to STAY working).

So if indeed all installed symlinks should be stale at that point, then 
the suggested -L -type l -delete would be a good change, as it wouldn't 
remove any non-stale symlinks users had put there themselves.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


Reply via email to