liquid_feedback_frontend
view env/lf4rcs/exec.lua @ 1243:30d44975a323
Added tag v3.1.0 for changeset bb2f388540cc
| author | jbe | 
|---|---|
| date | Mon Dec 14 17:54:06 2015 +0100 (2015-12-14) | 
| parents | 30523f31b186 | 
| children | 
 line source
     1 function lf4rcs.exec(...)
     2   local output, err_message, exit_code = extos.pfilter(nil, ...)
     3   local command_parts = {...}
     4   for i, part in ipairs(command_parts) do
     5     if string.match(part, " ") then
     6       command_parts[i] = '"' .. part .. '"'
     7     end
     8   end
     9   local command = table.concat(command_parts, " ")
    10   return command, output, err_message, exit_code
    11 end
