From ed932a0949147deee1fde21cbdef5e7760bae24b Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Wed, 5 Dec 2001 17:05:49 +0000 Subject: [PATCH] use type (built-in) instead of which (external) to determine whether a particular command is available --- bash_completion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash_completion b/bash_completion index 7c4fa168..013499bc 100644 --- a/bash_completion +++ b/bash_completion @@ -2,7 +2,7 @@ # # # @@ -101,7 +101,7 @@ complete -A binding bind have() { unset -v have - which $1 &> /dev/null + type $1 &> /dev/null [ $? = 0 ] && have="yes" }