paperlined.org
apps > bash
document updated 11 years ago, on Jun 8, 2012

How does Bash determine true/false?

Bash

Bash itself (without using test) only uses a program's exit status. Zero ⇒ true, non-zero ⇒ false.

For example:

Test

details here