|
此文章由 courage714 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 courage714 所有!转贴必须注明作者、出处和本声明,并保持内容完整
$#: Stores the number of command-line arguments that
were passed to the shell program.
$?: Stores the exit value of the last command that was
executed.
arg1 -eq arg2: like the set of "-eq, -ne, -lt, -le, -gt, or -ge", they are arithmetic binary operators. The
arguments may be positive or negative integers.
str1 = str2: POSIX compliant string test command, arguments will be interpreted as string
str1 == str2 : the same as "str1 = str2"
|
|