@@ -18,14 +18,26 @@ Date: August 2012
18
18
19
19
int run (const std::string &what, const std::vector<std::string> &argv);
20
20
21
+ // / This runs the executable given by the file name \p what.
22
+ // / Control returns when execution has finished.
23
+ // / Stdin, stdout and stderr may be redirected from/to a given file.
24
+ // / Give the empty string to retain the default handle.
25
+ // / Any shell-meta characters in the executable, \p argv and the I/O
26
+ // / redirect files are escaped as needed.
21
27
int run (
22
28
const std::string &what,
23
29
const std::vector<std::string> &argv,
24
30
const std::string &std_input,
25
31
const std::string &std_output,
26
32
const std::string &std_error);
27
33
28
- // / A variant that streams the stdout of the child into an ostream
34
+ // / This runs the executable given by the file name \p what.
35
+ // / Control returns when execution has finished.
36
+ // / Stdin and stderr may be redirected from/to a given file.
37
+ // / Give the empty string to retain the default handle.
38
+ // / Any output to stdout is stored in the \p std_output stream buffer.
39
+ // / Any shell-meta characters in the executable, \p argv and the I/O
40
+ // / redirect files are escaped as needed.
29
41
int run (
30
42
const std::string &what,
31
43
const std::vector<std::string> &argv,
0 commit comments