Hi,

unfortunately my username contains a space and thus also my home directory. The bash completion for ssh and scp had problems with that, as some quotations in /etc/bash_completion where missing. I fixed it and created a patch. As I don't know who the maintainer of this file is, I send it to you in hope to reach the right person.

I am running cygwin 1.7.27 x86_64.

Best regards,
Quirin Funke

--- bash_completion     2013-12-03 11:08:42.038628800 +0100
+++ bash_completion_new 2013-12-03 11:11:15.160939500 +0100
@@ -1247,7 +1247,7 @@
     else
         for i in /etc/ssh/ssh_config "${HOME}/.ssh/config" \
             "${HOME}/.ssh2/config"; do
-            [ -r $i ] && config=( "${config[@]}" "$i" )
+            [ -r "$i" ] && config=( "${config[@]}" "$i" )
         done
     fi
 
@@ -1275,10 +1275,10 @@
         for i in /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 \
             /etc/known_hosts /etc/known_hosts2 ~/.ssh/known_hosts \
             ~/.ssh/known_hosts2; do
-            [ -r $i ] && kh=( "${kh[@]}" $i )
+            [ -r "$i" ] && kh=( "${kh[@]}" "$i" )
         done
         for i in /etc/ssh2/knownhosts ~/.ssh2/hostkeys; do
-            [ -d $i ] && khd=( "${khd[@]}" $i/*pub )
+            [ -d "$i" ] && khd=( "${khd[@]}" "$i"/*pub )
         done
     fi
 
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to