[Bash-completion-commits] ./current r1201: Allow `Host(Name)' in ssh config file to have trailing comment.
David Paleino
d.paleino at gmail.com
Sat Nov 1 11:32:22 UTC 2008
------------------------------------------------------------
revno: 1201
committer: David Paleino <d.paleino at gmail.com>
branch nick: current
timestamp: Sat 2008-11-01 12:32:22 +0100
message:
Allow `Host(Name)' in ssh config file to have trailing comment.
modified:
bash_completion
debian/changelog
-------------- next part --------------
=== modified file 'bash_completion'
--- a/bash_completion 2008-11-01 11:29:33 +0000
+++ b/bash_completion 2008-11-01 11:32:22 +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/^[ \t]*[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:29:33 +0000
+++ b/debian/changelog 2008-11-01 11:32:22 +0000
@@ -35,9 +35,10 @@
* 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
+ * Allow `Host(Name)' in ssh config file to have trailing comment.
* debian/links fixed (Closes: #494292)
- -- David Paleino <d.paleino at gmail.com> Sat, 01 Nov 2008 12:29:14 +0100
+ -- David Paleino <d.paleino at gmail.com> Sat, 01 Nov 2008 12:31:56 +0100
bash-completion (20080705) unstable; urgency=low
More information about the Bash-completion-commits
mailing list