The following commit has been merged in the master branch:
commit 41a37d767940af7928282874618e3dc60549de54
Author: Ville Skyttä <[email protected]>
Date:   Sat Dec 8 10:37:07 2012 +0200

    scp: Treat strings with slash before colon or starting with [.~] as local.

diff --git a/completions/ssh b/completions/ssh
index 590ad88..9030aab 100644
--- a/completions/ssh
+++ b/completions/ssh
@@ -343,10 +343,10 @@ _scp()
 
     _expand || return 0
 
-    if [[ "$cur" == *:* ]]; then
-        _scp_remote_files
-        return 0
-    fi
+    case $cur in
+        !(*:*)/*|[.~]*) ;; # looks like a path
+        *:*) _scp_remote_files ; return 0 ;;
+    esac
 
     if [[ "$cur" == -F* ]]; then
         cur=${cur#-F}

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits

Reply via email to