|
Commands exit with an exit status
- 0 for success, 1 to 255 for failure
- Exit status of most recently executed command is kept in the $? variable just like return values from shell functions
Shell scripts may set an exit status with the exit command:
- exit 1 # Indicates an error
|