Bash++
Bash++ compiler internal documentation
Functions
run_bash.h File Reference
#include <string>
#include <vector>
#include <cerrno>
#include <system_error>
#include <sys/wait.h>
#include <unistd.h>
#include <error/InternalError.h>
Include dependency graph for run_bash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int run_bash (const std::string &filename, const std::vector< char * > &arguments)
 Runs a Bash script with the given filename and arguments, and returns the exit code of the script.
 

Function Documentation

◆ run_bash()

int run_bash ( const std::string &  filename,
const std::vector< char * > &  arguments 
)
inline

Runs a Bash script with the given filename and arguments, and returns the exit code of the script.

Copyright (C) 2025 rail5 Bash++: Bash with classes Licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later)

Parameters
filename
arguments
Returns
int