On Saturday 20 June 2009, David Paleino wrote: > diff --git a/bash_completion b/bash_completion > index e56b871..2b7e589 100644 > --- a/bash_completion > +++ b/bash_completion > @@ -1197,7 +1197,7 @@ _known_hosts_real() > # Add hosts reported by avahi, if it's available > # and if the daemon is started. > if type avahi-browse >&/dev/null; then > - if [ -z "$(pidof avahi-daemon)" ]; then > + if [ -n "$(pidof avahi-daemon)" ]; then
"pidof" is not in non-root users' default $PATH in many systems, for example Red Hat/Fedora ones (it's in /sbin there which is not in default $PATH until in recent Fedora releases I suppose), so this won't work properly on those. Add /sbin to a local $PATH and/or redirect stderr to /dev/null when running it? _______________________________________________ Bash-completion-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
