1,885
edits
Changes
→The test ([) Command
Will exit the script with an exit code of 2.
= The test ([) Command =
BASH has a built-in test command (similar to <code>/bin/test</code>) which can perform basic string and integer comparisons using these operators:
|}
These tests and comparisons are used with the <code>test</code> command or the synonym, <code>[</code> command:
$ test 10 -gt 5