myshell 2.0.0
Loading...
Searching...
No Matches
mexit.cpp File Reference

Built-in command mexit. More...

Functions

int mexit (int argc, char **argv)
 

Variables

static const builtin_doc doc
 

Detailed Description

Built-in command mexit.

Variable Documentation

◆ doc

const builtin_doc doc
static
Initial value:
= {
.name = "mexit",
.args = "[code] [-h|--help]",
.brief = "Exit the shell",
.doc = "Exits the shell with a status of code given as an argument.\n"
"If no argument is given exits with a status of 0.\n"
"Doesn't return unless given wrong number of arguments or code is invalid."
}