Let the caller decide how to launch helpers

In the end, we don't need to impose any policy on it,
and it removes a level of quoting, as well as an `eval`.
This commit is contained in:
2020-10-08 19:43:19 +02:00
parent 6aa4bd2ff5
commit 63e7895905
2 changed files with 5 additions and 6 deletions

View File

@@ -861,8 +861,7 @@ fun run_program (initializer_list<const char*> list, const string &filename) {
for (auto program : list)
if ((found = program))
break;
g.ext_helper = "/bin/sh -c " +
shell_escape (string (found) + " " + shell_escape (filename));
g.ext_helper = found + (" " + shell_escape (filename));
g.quitting = true;
return;
}