[Bash-completion-devel] [Bash-completion-commits] [SCM] bash-completion branch, master, updated. 976fafa07e57f1e0085c08c55d7453098197fe98

Ville Skyttä ville.skytta at iki.fi
Sun Jun 21 22:03:12 UTC 2009


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?



More information about the Bash-completion-devel mailing list