FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 06-17-2011, 05:43 PM
Jesse Keating
 
Default /etc/bash_completion.d/ vs /usr/share/bash-completion/

Both seem to be in use by various packages. Which one is thought to be
"correct"? Should this be in the guidelines somewhere?

--
Jesse Keating
Fedora -- Freedom² is a feature!
identi.ca: http://identi.ca/jkeating
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 06-18-2011, 08:51 AM
Ville Skyttä
 
Default /etc/bash_completion.d/ vs /usr/share/bash-completion/

On 06/17/2011 08:43 PM, Jesse Keating wrote:
> Both seem to be in use by various packages. Which one is thought to be
> "correct"? Should this be in the guidelines somewhere?

I'd say at the moment nothing besides bash-completion itself should be
installing files to /usr/share/bash-completion, and I'm not aware of any
package that does that. Can you point out some?

In its current default configuration, bash_completion does not load any
completions from that dir, it loads them from /etc/bash_completion.d.
bash-completion contains completions for many commands that may not be
installed and "enables" them with rpm triggers by symlinking things to
/etc/bash_completion.d to avoid loading stuff that will not be used.
Packages that install completions for commands that they ship themselves
need not jump through such hoops, they can simply drop their completions
to /etc/bash_completion.d.

Some of this will quite probably change with the next upstream release,
which will also add a pkgconfig file with which packages installing
completions can find out the dir to use like "pkg-config
--variable=completionsdir bash-completion". Loading files from
/etc/bash_completion.d will continue to be supported just like it is now
for backwards compatibility, but it is possible that some additional
rules (naming etc) how to install files to the path pointed to by the
pkgconfig snippet will be established. There will be documentation in
the bash-completion package how to do things the right way and I'll post
a heads up note here when the details have been figured out.
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 

Thread Tools




All times are GMT. The time now is 04:06 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org