diff --git a/core/src/main/java/org/jruby/util/io/PopenExecutor.java b/core/src/main/java/org/jruby/util/io/PopenExecutor.java index 135f36fc995..796e5ca34ac 100644 --- a/core/src/main/java/org/jruby/util/io/PopenExecutor.java +++ b/core/src/main/java/org/jruby/util/io/PopenExecutor.java @@ -131,7 +131,7 @@ long spawnProcess(ThreadContext context, Ruby runtime, ExecArg eargp, String[] e if (!searchForMetaChars(prog)) { script = script + "exec "; } - + prog = (RubyString)prog.strDup(runtime).prepend(context, newString(runtime, script)); eargp.chdir_dir = null; eargp.chdirGiven = false;