Displaying 1 result from an estimated 1 matches for "e4c11e0d".
2011 May 30
5
Getting the return value of the last command run
All commands return a value, usually 0 if run properly. For instance, try:
$ ls && echo "done"
$ lsd && echo "done"
The echo command is only executed if the ls command exited
successfully. If one did not add the echo command with the && after a
command, how can he determine if the command exited successfully? I
have a particularly troubling script that