Public bug reported:

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

** Affects: bash-completion (Ubuntu)
     Importance: Undecided
         Status: New

-- 
no bash completion for sshfs
https://bugs.launchpad.net/bugs/415271
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to