Changes

Jump to: navigation, search

BASH Exit Status

17 bytes added, 00:37, 16 September 2008
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

Navigation menu