[Bash-completion-commits] [bash-completion] 01/01: _known_hosts_real: Pre-expand \t instead of relying on sed supporting it (Alioth: #314393).
Ville Skyttä
scop-guest at alioth.debian.org
Mon Aug 26 17:45:51 UTC 2013
This is an automated email from the git hooks/post-receive script.
scop-guest pushed a commit to branch master
in repository bash-completion.
commit 50ae57927365a16c830899cc1714be73237bdcb2
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Aug 26 20:44:46 2013 +0300
_known_hosts_real: Pre-expand \t instead of relying on sed supporting it (Alioth: #314393).
---
bash_completion | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bash_completion b/bash_completion
index d9a5328..3360873 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1552,7 +1552,7 @@ _known_hosts_real()
# append any available aliases from config files
if [[ ${#config[@]} -gt 0 && -n "$aliases" ]]; then
- local hosts=$( sed -ne 's/^[ \t]*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\{0,1\}['"$'\t '"']\{1,\}\([^#*?]*\)\(#.*\)\{0,1\}$/\2/p' "${config[@]}" )
+ local hosts=$( sed -ne 's/^['"$'\t '"']*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\{0,1\}['"$'\t '"']\{1,\}\([^#*?]*\)\(#.*\)\{0,1\}$/\2/p' "${config[@]}" )
COMPREPLY+=( $( compgen -P "$prefix$user" \
-S "$suffix" -W "$hosts" -- "$cur" ) )
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
More information about the Bash-completion-commits
mailing list