» Conditional statements
Every Unix command returns a value on exit which the shell can interrogate. This value is held in the read-only shell variable $?.
A value of 0 (zero) signifies success; anything other than 0 (zero) signifies failure.
School of Computer Science and Engineering
UNSW Sydney NSW 2052 Australia Telephone +61 2 9385 4329
CRICOS Provider Code 00098G ABN 57 195 873 179