[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 9f192ba3390f408530dcc36ded5c2aecfa6447b3
David Paleino
d.paleino at gmail.com
Sat Jun 20 20:46:39 UTC 2009
The following commit has been merged in the master branch:
commit 9f192ba3390f408530dcc36ded5c2aecfa6447b3
Author: David Paleino <d.paleino at gmail.com>
Date: Sat Jun 20 22:45:14 2009 +0200
Remove -k from avahi-browse call
The original call to avahi-browse also had "-k", to avoid
lookups into avahi's services DB. We don't need the name
of the service, and if it contains ";", it may mistify
the result. But on Gentoo (at least), -k isn't available
(even if mentioned in the manpage), so...
diff --git a/bash_completion b/bash_completion
index 7cc109f..ed62d3c 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1196,10 +1196,15 @@ _known_hosts_real()
# Add hosts reported by avahi, if it's available
# and if the daemon is started.
+ # The original call to avahi-browse also had "-k", to avoid
+ # lookups into avahi's services DB. We don't need the name
+ # of the service, and if it contains ";", it may mistify
+ # the result. But on Gentoo (at least), -k isn't available
+ # (even if mentioned in the manpage), so...
if type avahi-browse >&/dev/null; then
if [ -n "$(pidof avahi-daemon)" ]; then
COMPREPLY=( "${COMPREPLY[@]}" $(
- compgen -W "$( avahi-browse -kcpr _workstation._tcp | \
+ compgen -W "$( avahi-browse -cpr _workstation._tcp | \
grep ^= | cut -d\; -f7 | sort -u )" -- $cur ) )
fi
fi
--
bash-completion
More information about the Bash-completion-commits
mailing list