diff --git a/warp-runner/src/executor.rs b/warp-runner/src/executor.rs index a12ca1c..757da82 100644 --- a/warp-runner/src/executor.rs +++ b/warp-runner/src/executor.rs @@ -16,9 +16,7 @@ pub fn execute(path: &Path, prog: &str) { _ => path_str }; - let mut args: Vec = env::args().collect(); - args[0] = prog.to_owned(); - + let args: Vec = env::args().skip(1).collect(); trace!("PATH={:?} prog={:?} args={:?}", path_env, prog, args); Command::new(prog) .env("PATH", path_env)