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

Built-in command msource. More...

Functions

int msource (int argc, char **argv)
 

Variables

static const builtin_doc doc
 

Detailed Description

Built-in command msource.

Variable Documentation

◆ doc

const builtin_doc doc
static
Initial value:
= {
.name = "msource (or .)",
.args = "<file> [-h|--help]",
.brief = "Execute commands from a given file in the current shell.",
.doc = "Reads commands from a given file line by line and executes them in the current shell.\n"
"Returns 0 unless file can't be opened."
}