summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Unix/Command/_ssh2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 65092283b..eaee9a94e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-11-14  Peter Stephenson  <pws@csr.com>
 
+	* users/10981: Jean-Rene David <jrdavid@magma.ca>:
+	Completion/Unix/Command/_ssh: needs glob_subst to expand
+	path for config file.
+
 	* users/10979: Completion/Unix/Command/_ssh: use config file
 	from -F option if present.
 
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index d31e60760..11be5d1d0 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -333,7 +333,7 @@ _ssh_hosts () {
       ${opt_args[-l]:+"users=${opt_args[-l]:q}"} hosts "$@"
   fi
   if (( ind = ${words[(I)-F]} )); then
-    config=$words[ind+1]
+    config=${~words[ind+1]}
   else
     config="$HOME/.ssh/config"
   fi