You are not logged in.
Pages: 1
Topic closed
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
works for me
Give what you have. To someone, it may be better than you dare to think.
Offline
Why did you use
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
@ ber_t: Thanks, removing this line solved the problem.
Maybe someone should update the wiki page of sudo ...
Offline
@ ber_t: Thanks, removing this line solved the problem.
Maybe someone should update the wiki page of sudo ...
confirm...
Offline
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.
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
Pages: 1
Topic closed