[Bash-completion-commits] ./current r1204: Fixed sed quoting bug in _known_hosts(), thanks to Freddy Vulto

David Paleino d.paleino at gmail.com
Sat Nov 8 08:48:11 UTC 2008


------------------------------------------------------------
revno: 1204
committer: David Paleino <d.paleino at gmail.com>
branch nick: current
timestamp: Sat 2008-11-08 09:48:11 +0100
message:
  Fixed sed quoting bug in _known_hosts(), thanks to Freddy Vulto
  (Closes: #504650)
modified:
  bash_completion
  debian/changelog
-------------- next part --------------
=== modified file 'bash_completion'
--- a/bash_completion	2008-11-08 08:40:53 +0000
+++ b/bash_completion	2008-11-08 08:48:11 +0000
@@ -2559,9 +2559,9 @@
 
 	if [ ${#config[@]} -gt 0 ]; then
 	    # expand path (if present) to global known hosts file
-	    global_kh=$( eval echo $( sed -ne 's/^[ \t]*[Gg][Ll][Oo][Bb][Aa][Ll][Kk][Nn][Oo][Ww][Nn][Hh][Oo][Ss][Tt][Ss][Ff][Ii][Ll][Ee]['"$'\t '"']*\(.*\)$/\1/p' "${config[@]}" ) )
+	    global_kh=$( eval echo "$( sed -ne 's/^[ \t]*[Gg][Ll][Oo][Bb][Aa][Ll][Kk][Nn][Oo][Ww][Nn][Hh][Oo][Ss][Tt][Ss][Ff][Ii][Ll][Ee]['"$'\t '"']*\(.*\)$/\1/p' "${config[@]}" )" )
 	    # expand path (if present) to user known hosts file
-	    user_kh=$( eval echo $( sed -ne 's/^[ \t]*[Uu][Ss][Ee][Rr][Kk][Nn][Oo][Ww][Nn][Hh][Oo][Ss][Tt][Ss][Ff][Ii][Ll][Ee]['"$'\t '"']*\(.*\)$/\1/p' "${config[@]}" ) )
+	    user_kh=$( eval echo "$( sed -ne 's/^[ \t]*[Uu][Ss][Ee][Rr][Kk][Nn][Oo][Ww][Nn][Hh][Oo][Ss][Tt][Ss][Ff][Ii][Ll][Ee]['"$'\t '"']*\(.*\)$/\1/p' "${config[@]}" )" )
 	fi
 
 	# Global known_hosts files

=== modified file 'debian/changelog'
--- a/debian/changelog	2008-11-08 08:45:31 +0000
+++ b/debian/changelog	2008-11-08 08:48:11 +0000
@@ -34,13 +34,15 @@
   * Added --schedule-only to aptitude's completion (Closes: #502664)
   * Added support for `-F configfile' to _known_hosts(), ssh, scp and 
     sftp, thanks to Freddy Vulto (Closes: #504141)
+  * Fixed sed quoting bug in _known_hosts(), thanks to Freddy Vulto
+    (Closes: #504650)
   * Allow `Host(Name)' in ssh config file to be indented
   * Allow `Host(Name)' in ssh config file to have trailing comment.
   * Fixed perl -I/-x completion, thanks to Freddy Vulto
     (Closes: #504547)
   * debian/links fixed (Closes: #494292)
 
- -- David Paleino <d.paleino at gmail.com>  Sat, 08 Nov 2008 09:43:59 +0100
+ -- David Paleino <d.paleino at gmail.com>  Sat, 08 Nov 2008 09:47:03 +0100
 
 bash-completion (20080705) unstable; urgency=low
 



More information about the Bash-completion-commits mailing list