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

Built-in command mcd. More...

Functions

int mcd (int argc, char **argv)
 

Variables

static const builtin_doc doc
 

Detailed Description

Built-in command mcd.

Variable Documentation

◆ doc

const builtin_doc doc
static
Initial value:
= {
.name = "mcd",
.args = "<path> [-h|--help]",
.brief = "Change working directory",
.doc = "Returns 0 unless given wrong number of arguments or chdir() fails."
}