bsw@1219: function lf4rcs.exec(...) bsw@1219: local output, err_message, exit_code = extos.pfilter(nil, ...) bsw@1219: local command_parts = {...} bsw@1219: for i, part in ipairs(command_parts) do bsw@1219: if string.match(part, " ") then bsw@1219: command_parts[i] = '"' .. part .. '"' bsw@1219: end bsw@1219: end bsw@1219: local command = table.concat(command_parts, " ") bsw@1219: return command, output, err_message, exit_code bsw@1219: end bsw@1219: