Can bash-completion be added to by other packages?

Asked by Ken Sharp

Hi, I'm not sure how bash-completion works.

Do all the scripts have to come from the bash-completion package, or can other packages add to what the package installs?
If so, where does it put the config files?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu bash-completion Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

/etc/bash_completion

Looks complex but that's the file

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2
Revision history for this message
Ken Sharp (kennybobs) said :
#3

Thanks actionparsnip, that solved my question.

Revision history for this message
Ken Sharp (kennybobs) said :
#4

Actually, no it didn't.

What I am wondering is if bash-completion has to be edited by the package maintainer, or can, say Wine's maintainer, add a bash-completion to the Wine install script. I'm not sure how the scripts are maintained.

Thanks.

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Ken Sharp (kennybobs) said :
#6

I guess people don't know how it works?

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Ken Sharp (kennybobs) said :
#8

Surely somebody must be maintaining this package, and hence know how it works?

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#9

As far as I know both is possible:

The package bash_completion delivers the config files for a number of other packages (see http://packages.ubuntu.com/oneiric/all/bash-completion/filelist )

But other packages deliver their own config file to be put under /etc/bash_competion.d/ e.g. http://packages.ubuntu.com/oneiric/all/nanoblogger-extra/filelist

I am not sure if wine is a reasonable package for a bash-completion script. bash-completion is a tool for support of command line actions, and wine is designed to offer a graphical user interface. So what do you want to achieve there?

Revision history for this message
Ken Sharp (kennybobs) said :
#10

Thanks Manfred Hampl, that solved my question.

Revision history for this message
Ken Sharp (kennybobs) said :
#11

Wine already uses bash_completion.

Will submit a patch.

Revision history for this message
Ken Sharp (kennybobs) said :
#12