Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
escape runtime arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Jan 5, 2015
1 parent 1649985 commit 91d890a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmark/runbench.d
Expand Up @@ -126,7 +126,8 @@ Config parseArgs(string[] args)
string[] tmp = args;
if (findSkip(tmp, only("--")))
{
cfg.args = join(tmp, " ");
import std.process : escapeShellCommand;
cfg.args = escapeShellCommand(tmp);
args = args[0 .. $ - 1 - tmp.length];
}
}
Expand Down

0 comments on commit 91d890a

Please sign in to comment.