From 2d7faae8acc16b6b7c6a8397a3cac874fb6d8794 Mon Sep 17 00:00:00 2001 From: gouldtj Date: Fri, 29 Feb 2008 23:00:47 +0000 Subject: [PATCH] r18226@shi: ted | 2008-02-29 15:00:33 -0800 Flipping so that the file is the last parameter at request of Aaron Spike. --- src/extension/implementation/script.cpp | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index 37e4e15b8..66383e5f9 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -1017,31 +1017,14 @@ Script::execute (const std::list &in_command, } 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::const_iterator i = in_params.begin(); i != in_params.end(); i++) { argv.push_back(*i); } -/* - for (std::vector::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; -- 2.30.2