多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 第七章 测试 ### 本章目录 - [7.1 测试结构](07_1_test_constructs.md) - [7.2 文件测试操作](07_2_file_test_operators.md) - [7.3 其他比较操作](07_3_other_comparison_operators.md) - [7.4 嵌套 if/then 条件测试](07_4_nested_if_then_condition_tests.md) - [7.5 牛刀小试](07_5_testing_your_knowledge_of_tests.md) 每一个完备的程序设计语言都可以对一个条件进行判断,然后根据判断结果执行相应的指令。Bash 拥有 [`test`](http://tldp.org/LDP/abs/html/testconstructs.html#TTESTREF) 命令,[双方括号](http://tldp.org/LDP/abs/html/testconstructs.html#DBLBRACKETS)、[双圆括号](http://tldp.org/LDP/abs/html/testconstructs.html#DBLPARENSTST) 测试操作符以及 `if/then` 测试结构。