version 1.18, 2010/09/29 07:44:56 |
version 1.19, 2014/03/08 01:42:17 |
|
|
utility exits with one of the following values: |
utility exits with one of the following values: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
.It 0 |
.It 0 |
.Ar utility |
|
was invoked and completed successfully. |
|
In this case the exit code is returned by the utility itself, not |
|
.Nm . |
|
If no utility was specified, then |
|
.Nm |
.Nm |
completed successfully and returned the exit code itself. |
completed successfully and, if |
|
.Ar utility |
|
was specified, it was invoked and completed successfully too. |
.It 1 |
.It 1 |
An invalid command line option was passed to |
An invalid command line option was passed to |
.Nm . |
.Nm |
.It 1\(en125 |
and |
.Ar utility |
.Ar utility |
was invoked but failed in some way; |
was not invoked, or |
|
.Ar utility |
|
was invoked but failed with exit status 1. |
|
.It 2\(en125, 128\(en255 |
|
.Ar utility |
|
was invoked but failed with this exit status; |
see its manual page for more information. |
see its manual page for more information. |
In this case the exit code is returned by the utility itself, not |
|
.Nm . |
|
.It 126 |
.It 126 |
.Ar utility |
.Ar utility |
was found but could not be invoked. |
was found but could not be invoked, or it was invoked but failed |
|
with exit status 126. |
.It 127 |
.It 127 |
.Ar utility |
.Ar utility |
could not be found. |
could not be found, or it was invoked but failed with exit status 127. |
.El |
.El |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr execvp 3 , |
.Xr execvp 3 , |