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

Built-in command merrno. More...

Functions

int merrno (int argc, char **argv)
 

Variables

int msh_errno = 0
 
static const builtin_doc doc
 

Detailed Description

Built-in command merrno.

Variable Documentation

◆ doc

const builtin_doc doc
static
Initial value:
= {
.name = "merrno",
.args = "[-h|--help]",
.brief = "Print error code of the last command",
.doc = "Returns 1 if any arguments specified, 0 otherwise."
}