3 ############################################################
5 # author: devenkong(18151155@qq.com)
7 ############################################################
8 # Copyright (C) 2022- Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software
10 # Foundation gives unlimited permission to copy, distribute
12 ############################################################
14 # judgement for var/func/alias if it is defined.
15 ############################################################
26 ##############################
27 # section: shlib include
28 ##############################
34 ##############################
35 # section: public comment info
36 ##############################
41 ##############################
42 # section: variable define
43 ##############################
48 ##############################
49 # section: private function
50 ##############################
55 ##############################
56 # section: public function
57 ##############################
59 func abc [ int a, int b, c ]
67 dreturn "this string is return from function abc()."
83 echo xxxxxxxxxxxxxxxxxxxxxxxxx
85 [[ $(is_digital 123) == true ]] && echo "string '123' is a digial string."
86 [[ $(is_digital 123) == false ]] && echo "string 'a123' is a digial string."
88 [[ $(is_var_defined testvar) == true ]] && echo "string 'testvar' is a variable."
89 [[ $(is_var_defined testvar) == false ]] && echo "variable 'testvar' is not defined."
91 [[ $(is_func_defined abc) == true ]] && echo "string 'abc' is a function name string."
92 [[ $(is_func_defined aaa) == false ]] && echo "string 'aaa' is not a function name string."
95 [[ $(is_alias_defined testalias) == true ]] && echo "string 'testvar' is a defined alias name."
96 [[ $(is_alias_defined testalias) == false ]] && echo "string 'testalias' is not a defined alias name."
98 echo xxxxxxxxxxxxxxxxxxxxxxxxx
104 ##############################
106 ##############################