在清单1的第一个示例中,- gt操作符对两个字符值之间执行算术比较。
In the first example in Listing 1, the -gt operator performs an arithmetic comparison between two literal values.
test命令非常强大,但是很难满足其转义需求以及字符串和算术比较之间的区别。
The test command is very powerful, but somewhat unwieldy given its requirement for escaping and given the difference between string and arithmetic comparisons.
Shell并没有提供大量的算术操作符,但是已经足以完成大多数编程任务,包括移位、求余和比较。
The shell doesn't have a large collection of arithmetic operators, but it's sufficient for most programming tasks, including bitwise shifts, remainders, and comparisons.
应用推荐