Tests
Bash Unix Shell Scripting: | ||
---|---|---|
Exit and Exit Status | Test Constructs |
Chapter 7. Tests
- Table of Contents
- Test Constructs
- File test operators
- Other Comparison Operators
- Nested if/then Condition Tests
- Testing Your Knowledge of Tests
- Test Constructs
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.