From 71d408fb032b2adaaf2cf72214828235c6b36d9d Mon Sep 17 00:00:00 2001 From: lw Date: Fri, 21 Dec 2012 17:31:24 +0800 Subject: [PATCH] fix bash-it running on zh_CN locale --- lib/helpers.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers.bash b/lib/helpers.bash index e1787fe0..c1e999ea 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -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 "$(type -a $1 2>/dev/null | egrep 'is a function')|是函数" ] } _bash-it-aliases ()