[Bash-completion-commits] ./current r1200: Allow `Host(Name)' in ssh config file to be indented

David Paleino d.paleino at gmail.com
Sat Nov 1 11:29:33 UTC 2008


------------------------------------------------------------
revno: 1200
committer: David Paleino <d.paleino at gmail.com>
branch nick: current
timestamp: Sat 2008-11-01 12:29:33 +0100
message:
  Allow `Host(Name)' in ssh config file to be indented
modified:
  bash_completion
  debian/changelog
-------------- next part --------------
=== modified file 'bash_completion'
--- a/bash_completion	2008-11-01 11:25:38 +0000
+++ b/bash_completion	2008-11-01 11:29:33 +0000
@@ -2637,7 +2637,7 @@
 	    fi
 	    # append any available aliases from config files
 	    if [ ${#config[@]} -gt 0 ] && [ -n "$aliases" ]; then
-	    local host_aliases=$( sed -ne 's/^[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\?['"$'\t '"']\+\([^*?]*\)$/\2/p' "${config[@]}" )
+	    local host_aliases=$( sed -ne 's/^[ \t]*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\?['"$'\t '"']\+\([^*?]*\)$/\2/p' "${config[@]}" )
 	    hosts=$( compgen -W "$host_aliases" -- $ocur )
 		COMPREPLY=( "${COMPREPLY[@]}" $hosts )
 	    fi

=== modified file 'debian/changelog'
--- a/debian/changelog	2008-11-01 11:25:38 +0000
+++ b/debian/changelog	2008-11-01 11:29:33 +0000
@@ -34,9 +34,10 @@
   * 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)
+  * Allow `Host(Name)' in ssh config file to be indented
   * debian/links fixed (Closes: #494292)
 
- -- David Paleino <d.paleino at gmail.com>  Sat, 01 Nov 2008 12:24:34 +0100
+ -- David Paleino <d.paleino at gmail.com>  Sat, 01 Nov 2008 12:29:14 +0100
 
 bash-completion (20080705) unstable; urgency=low
 



More information about the Bash-completion-commits mailing list