Chapter 7. Tests
Table of Contents
目錄
7.1. Test Constructs
7.1. 測試結構
7.2. File test operators
7.2. 檔案測試運算子
7.3. Other Comparison Operators
7.3. 其餘比較運算子
7.4. Nested if/then Condition Tests
7.4. 巢狀 if/then 條件測試
7.5. Testing Your Knowledge of Tests
7.5. 測驗您的測試相關知識
Every reasonably complete programming language can test for a condition, then act according to the result of the test.
每個完整的程式語言皆可使用條件測試,並依據測試結果採取下一步動作。
Bash has the test command, various bracket and parenthesis operators, and the if/then construct.
Bash 提供測試指令、多重 bracket (中括號) 、括號運算子 (parenthesis operators) 及 if/then 架構。