You are not logged in.

#1 2010-06-05 12:53:12

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 388

[SOLVED] sudo pacman - bash-completion

I'm using bash as shell and have a problem:
Bash-completion doesn't work with sudo and pacman.
sudo with other apps works fine, also pacman without sudo.
Zsh does autocomplete with sudo but I don't want to use Zsh.

part of my .bashrc file

if [ -f /etc/bash_completion ]; then
   . /etc/bash_completion
fi

complete -cf sudo

Is this 'bug' known or should I make a bugreport? If yes, is it a bug of sudo, pacman or bash?

Last edited by Radioactiveman (2010-06-05 16:07:39)

Offline

#2 2010-06-05 12:57:23

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] sudo pacman - bash-completion

works for me


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-06-05 13:46:25

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: [SOLVED] sudo pacman - bash-completion

Why did you use

Radioactiveman wrote:
complete -cf sudo

Isn't there already a completion function defined and assigned inside /etc/bash_completion to handle sudo and other similar commands (_root_command)?

Offline

#4 2010-06-05 15:08:31

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 388

Re: [SOLVED] sudo pacman - bash-completion

@ ber_t: Thanks, removing this line solved the problem. smile

Maybe someone should update the wiki page of sudo ...

Offline

#5 2010-06-05 15:59:09

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: [SOLVED] sudo pacman - bash-completion

Radioactiveman wrote:

Maybe someone should update the wiki page of sudo ...

Done.

Mark this thread as solved?

Offline

#6 2011-09-29 15:43:33

fabioamd87
Member
Registered: 2008-11-22
Posts: 128

Re: [SOLVED] sudo pacman - bash-completion

Radioactiveman wrote:

@ ber_t: Thanks, removing this line solved the problem. smile

Maybe someone should update the wiki page of sudo ...

confirm...

Offline

#7 2011-10-03 05:28:14

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,411

Re: [SOLVED] sudo pacman - bash-completion

I am going to go ahead and close this thread now...

fabioamd87  -- Watch for old threads.  We tend to leave them open, but close them if they come back to life.

Our policy


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB