5#ifndef TEMPLATE_MSH_EXEC_H
6#define TEMPLATE_MSH_EXEC_H
8#include "types/msh_command_fwd.h"
16constexpr int BUILTIN = 1 << 0;
17constexpr int FORK_NO_WAIT = 1 << 1;
18constexpr int ASYNC = 1 << 2;
19constexpr int FORCE_PIPE = 1 << 3;
20constexpr int PIPE_STDERR = 1 << 4;
int msh_exec_internal(command &cmd, int in, int out, int flags)
Internal command execution function.
Definition msh_exec.cpp:220
int exec_line_no
The current line number of the script being executed.
Definition msh_exec.cpp:35
int msh_exec_simple(simple_command &cmd, int pipe_in=STDIN_FILENO, int pipe_out=STDOUT_FILENO, int flags=0)
Executes a simple command.
Definition msh_exec.cpp:146
std::string exec_path
The path to the script being executed.
Definition msh_exec.cpp:44
int msh_exec_script(const char *path)
Executes a script line by line.
Definition msh_exec.cpp:59
int msh_execve(char **argv)
Executes a command.
Definition msh_exec.cpp:95
Top-level command structure.
Definition msh_command.h:48
Simple command structure.
Definition msh_command.h:87