_eselect: fix function existance checking.

Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
This commit is contained in:
Vadim A. Misbakh-Soloviov 2013-11-15 02:15:18 +07:00
parent 88b268e1a9
commit 820772a839
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ _eselect() {
fi
else
if (( $modnames[(I)$words[2]] )); then
(whence _eselect_$words[2] &>/dev/null) && _eselect_$words[2] "$@"
(( $+functions[_eselect_$words[2]] )) && _eselect_$words[2] "$@"
fi
fi
fi