aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2011-12-26 19:18:46 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2011-12-26 19:18:46 -0800
commit8d2f107d61a8b0e099ab9a59b8a32c236da5a5fc (patch)
tree89f718ab74f8400332534aee237c6f925348f05c /exec.h
parent3f16ace6784caab54fb054836ee93902e9701913 (diff)
Some changes to migrate towards C++ and a multithreaded model
Diffstat (limited to 'exec.h')
-rw-r--r--exec.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/exec.h b/exec.h
index ac051da3..00f7bac9 100644
--- a/exec.h
+++ b/exec.h
@@ -9,9 +9,11 @@
#define FISH_EXEC_H
#include <wchar.h>
+#include <vector>
#include "proc.h"
#include "util.h"
+#include "common.h"
/**
pipe redirection error message
@@ -19,7 +21,7 @@
#define PIPE_ERROR _(L"An error occurred while setting up pipe")
/**
- Execute the processes specified by j.
+ Execute the processes specified by j.
I've put a fair bit of work into making builtins behave like other
programs as far as pipes are concerned. Unlike i.e. bash, builtins
@@ -51,9 +53,11 @@ void exec( job_t *j );
\return the status of the last job to exit, or -1 if en error was encountered.
*/
-__warn_unused int exec_subshell( const wchar_t *cmd,
+__warn_unused int exec_subshell( const wchar_t *cmd,
array_list_t *l );
+__warn_unused int exec_subshell2( const wcstring &cmd, std::vector<wcstring> &outputs );
+
/**
Loops over close until thesyscall was run without beeing