_eselect: fix function existance checking.
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
This commit is contained in:
parent
88b268e1a9
commit
820772a839
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue