Changed type checking func to be locale independent
parent
ad41c5cdc5
commit
16100e5949
|
|
@ -44,6 +44,7 @@ bash-it ()
|
||||||
typeset component=${1:-}
|
typeset component=${1:-}
|
||||||
shift
|
shift
|
||||||
typeset func
|
typeset func
|
||||||
|
|
||||||
case $verb in
|
case $verb in
|
||||||
show)
|
show)
|
||||||
func=_bash-it-$component;;
|
func=_bash-it-$component;;
|
||||||
|
|
@ -80,7 +81,7 @@ _is_function ()
|
||||||
_about 'sets $? to true if parameter is the name of a function'
|
_about 'sets $? to true if parameter is the name of a function'
|
||||||
_param '1: name of alleged function'
|
_param '1: name of alleged function'
|
||||||
_group 'lib'
|
_group 'lib'
|
||||||
[ -n "$(type -a $1 2>/dev/null | grep 'is a function')" ]
|
[ -n "$(type -t $1 2>/dev/null | grep 'function')" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
_bash-it-aliases ()
|
_bash-it-aliases ()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue