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

Built-in command mpwd. More...

Functions

int mpwd (int argc, char **argv)
 

Variables

static const builtin_doc doc
 

Detailed Description

Built-in command mpwd.

Variable Documentation

◆ doc

const builtin_doc doc
static
Initial value:
= {
.name = "mpwd",
.args = "[-h|--help]",
.brief = "Print the current working directory",
.doc = "Returns 1 if any arguments specified or getcwd() fails, 0 otherwise."
}