no bash completion for sshfs

Bug #415271 reported by timobaumann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash-completion (Debian)
Fix Released
Unknown
bash-completion (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: bash-completion

There is no completion of hostname and paths for sshfs, while the same is available for scp and ssh.

Expected behaviour: typing "sshfs ser<tab>" should expand to "sshfs server.my.organisation:"
Actual behaviour: typing <tab> does not entail completion.

I'm filing this against bash completion and not against sshfs itself because ssh and scp support are already available in /etc/bash_completion and sshfs support is easy to add there as well.

The following one-line patch to /etc/bash_completion fixes the matter:

====================

--- /etc/bash_completion~ 2009-08-18 11:06:53.000000000 +0200
+++ /etc/bash_completion 2009-08-18 11:07:32.000000000 +0200
@@ -2688,7 +2688,7 @@
        -e 's/[*@|=]$//g' -e 's/[^\/]$/& /g' ) )
  return 0
 }
-complete -F _scp $nospace scp
+complete -F _scp $nospace scp sshfs
 }

 # rsync(1) completion

===================

Description: Ubuntu 9.04
Release: 9.04

sshfs:
  Installed: 2.1-1
  Candidate: 2.1-1
  Version table:
 *** 2.1-1 0
        500 http://de.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status
bash-completion:
  Installed: 20080705ubuntu3
  Candidate: 20080705ubuntu3
  Version table:
 *** 20080705ubuntu3 0
        500 http://de.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
timobaumann (timobaumann) wrote :
Changed in bash-completion (Ubuntu):
status: New → Confirmed
status: Confirmed → New
Revision history for this message
timobaumann (timobaumann) wrote :

attaching a patch to the package following https://wiki.ubuntu.com/Bugs/HowToFix .

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bash-completion - 1:1.0-3ubuntu1

---------------
bash-completion (1:1.0-3ubuntu1) karmic; urgency=low

  * Add completion for sshfs based on scp (thanks, Timo Baumann; LP:
    #415271).

 -- Colin Watson <email address hidden> Thu, 10 Sep 2009 13:37:08 +0100

Changed in bash-completion (Ubuntu):
status: New → Fix Released
Changed in bash-completion (Debian):
status: Unknown → New
Changed in bash-completion (Debian):
status: New → Fix Committed
Changed in bash-completion (Debian):
status: Fix Committed → Fix Released
Changed in bash-completion (Debian):
status: Fix Released → Confirmed
Changed in bash-completion (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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