completion does not complete commands after 'gksudo'

Bug #239080 reported by Phil Sung
30
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: bash-completion

I am using bash-completion 20060301-3ubuntu3 in Hardy. It would be nice if it recognized that gksudo should be followed by a command name, as it does for sudo. For example if I type:

$ gksudo synap<TAB>

bash-completion merely beeps rather than completing to

$ gksudo synaptic

The following patch to /etc/bash_completion fixes this:

diff -u /etc/bash_completion /tmp/buffer-content-66310Oi
--- /etc/bash_completion 2008-04-08 10:29:11.000000000 -0400
+++ /tmp/buffer-content-66310Oi 2008-06-10 14:39:20.000000000 -0400
@@ -3259,7 +3259,7 @@
 {
  PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin _command $1 $2 $3
 }
-complete -F _root_command $filenames sudo fakeroot really
+complete -F _root_command $filenames sudo fakeroot really gksudo

 # ant(1) completion
 #

Tags: metabug
Changed in bash-completion:
status: New → Confirmed
Revision history for this message
Danilo Penna Queiroz (daniloqueiroz) wrote :

confirmed using:

 * bash-completion 20060301-3ubuntu3
 * gksu 2.0.0-5ubuntu3

Revision history for this message
Mika Fischer (zoop) wrote :

Thanks for the patch. I'll include it in the next upload!

Changed in bash-completion:
assignee: nobody → zoop
importance: Undecided → Low
status: Confirmed → In Progress
Mika Fischer (zoop)
Changed in bash-completion:
assignee: zoop → nobody
Revision history for this message
James Westby (james-w) wrote :

Hi,

This change is in upstream bzr and so should be appearing in
Ubuntu some time soon.

Thanks,

James

Revision history for this message
Alexander Gieg (alexgieg) wrote :

IMHO, rather than implementing this only for "gksudo", it would be nice to have it for "kdesudo" and "gksu" too.

Revision history for this message
Colin Watson (cjwatson) wrote :

I can't find a changelog entry for it, but this is fixed in bash-completion 1:1.0-2, now in karmic.

  complete -F _root_command $filenames sudo fakeroot really gksudo gksu kdesudo

Changed in bash-completion (Ubuntu):
status: In Progress → Fix Released
tags: added: metabug
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.