---

Testing the Exit Status of a Command

[ Thanks to Andrew
Weber
for this link. ]

“The test command is used to determine exit status on numerous
tests that can be performed in scripts. The test command does not
produce any output it simply is checking for the exit status. Note
if you use variables with test be sure to enclose them in double
quotes so the test receives an argument.”

Complete
Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis