summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 78e26a7)
raw | patch | inline | side by side (parent: 78e26a7)
author | gouldtj <gouldtj@users.sourceforge.net> | |
Fri, 29 Feb 2008 23:00:47 +0000 (23:00 +0000) | ||
committer | gouldtj <gouldtj@users.sourceforge.net> | |
Fri, 29 Feb 2008 23:00:47 +0000 (23:00 +0000) |
Flipping so that the file is the last parameter at request of
Aaron Spike.
Aaron Spike.
src/extension/implementation/script.cpp | patch | blob | history |
index 37e4e15b81e23f54f127c739c5dcc4a09da19797..66383e5f9c58818d8d4516bacbd4c5fb7b7444c8 100644 (file)
} while(param_str.size() > 0);
}
- if (!(filein.empty())) {
-// if(argv.size() == 1) {
- argv.push_back(filein);
-/* }
- else {
- std::string parameter_str = argv.back();
- argv.pop_back();
- //TODO: quote
- parameter_str += " " + filein;
- argv.push_back(parameter_str);
- }
-*/
- }
-
for (std::list<std::string>::const_iterator i = in_params.begin();
i != in_params.end(); i++) {
argv.push_back(*i);
}
-/*
- for (std::vector<std::string>::const_iterator i = argv.begin();
- i != argv.end(); i++) {
- std::cout << "_" << *i << "_" << std::endl;
+ if (!(filein.empty())) {
+ argv.push_back(filein);
}
-*/
int stdout_pipe, stderr_pipe;