Documentation
¶
Overview ¶
Package exit implements the exit builtin command.
exit — cause the shell to exit
Usage: exit [N]
Exit the shell with status N. If N is omitted, the exit status is that of the last command executed. If N is not a valid integer, the shell prints an error and exits with status 2 (matching bash behavior).
Exit codes:
N The supplied exit status (truncated to uint8). 2 Invalid (non-numeric) argument (shell exits). 1 Too many arguments (shell exits).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = builtins.Command{ Name: "exit", Description: "exit the shell", MakeFlags: builtins.NoFlags(run), }
Cmd is the exit builtin command descriptor.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.