/usr/bin/dash: Difference between revisions
Line 190: | Line 190: | ||
=== Command Exit Status === | === Command Exit Status === | ||
Each command has an exit status that can influence the behaviour of other shell commands. The paradigm is that a command exits with zero for normal or success, and non-zero for failure, error, or a false indication. The man page for each command should indicate the various exit codes and what they mean. Additionally, the builtin commands return exit codes, as does an executed shell function. | |||
If a command consists entirely of variable assignments then the exit status of the command is that of the last command substitution if any, otherwise 0. | |||
=== Complex Commands === | === Complex Commands === |