Tests

Chapter 7. Tests

Table of Contents
7.1. Test Constructs
7.2. File test operators
7.3. Other Comparison Operators
7.4. Nested if/then Condition Tests
7.5. Testing Your Knowledge of Tests

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.


120 visits (3 today, 15 this week, 27 this month, 120 this year)
Uptime: 18:33:00 up 2 days, 2:08, 2 users, load average: 0.01, 0.01, 0.00
3.23.102.227 GET from server z.lam1.us

Saturday, May 17, 2025 @ 6:33:00 PM
z.ServerAdmin@lam1.us