exit

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL