Fixed #157: Made 'type' command using default LANG (not system LANG) to check if function or alias.
This commit is contained in:
@@ -80,7 +80,7 @@ _is_function ()
|
||||
_about 'sets $? to true if parameter is the name of a function'
|
||||
_param '1: name of alleged function'
|
||||
_group 'lib'
|
||||
[ -n "$(type -a $1 2>/dev/null | grep 'is a function')" ]
|
||||
[ -n "$(LANG=C type -t $1 2>/dev/null | grep 'function')" ]
|
||||
}
|
||||
|
||||
_bash-it-aliases ()
|
||||
|
||||
Reference in New Issue
Block a user