27.08.2015 Views

Advanced Bash−Scripting Guide

Advanced Bash-Scripting Guide - Nicku.org

Advanced Bash-Scripting Guide - Nicku.org

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

true # the "true" builtin.<br />

echo "exit status of \"true\" = $?" # 0<br />

! true<br />

echo "exit status of \"! true\" = $?" # 1<br />

# Note that the "!" needs a space.<br />

# !true leads to a "command not found" error<br />

# Thanks, S.C.<br />

<strong>Advanced</strong> <strong>Bash−Scripting</strong> <strong>Guide</strong><br />

Certain exit status codes have reserved meanings and should not be user−specified in a script.<br />

Chapter 6. Exit and Exit Status 39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!