Re: A question about `aptitude purge'
On Thu, Jun 04, 2009 at 05:38:43PM +0200, Sven Joachim <firstname.lastname@example.org> was heard to say:
> On 2009-06-04 18:16 +0200, Rodolfo Medina wrote:
> > I did:
> > # aptitude purge mplayer
> > . After that, the bash completion was still working for the `mplayer' command,
> That's because bash reads the completion code only once, when it starts
> up. Try starting a fresh shell, e.g. with "exec bash".
To expand on that: the bash completion stuff is actually stored in
/etc/bash_completion, which is part of the bash package. When bash
starts up, it runs that file, which checks what software is installed
and enables the appropriate completion rules.
So the mplayer completion rules will always be on your system, but
if bash doesn't see mplayer when it starts up, they won't be enabled.