parent
ed6e2f8c30
commit
4cf8749f9c
@ -16,9 +16,7 @@ pub fn execute(path: &Path, prog: &str) {
|
|||||||
_ => path_str
|
_ => path_str
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut args: Vec<String> = env::args().collect();
|
let args: Vec<String> = env::args().skip(1).collect();
|
||||||
args[0] = prog.to_owned();
|
|
||||||
|
|
||||||
trace!("PATH={:?} prog={:?} args={:?}", path_env, prog, args);
|
trace!("PATH={:?} prog={:?} args={:?}", path_env, prog, args);
|
||||||
Command::new(prog)
|
Command::new(prog)
|
||||||
.env("PATH", path_env)
|
.env("PATH", path_env)
|
||||||
|
Loading…
Reference in New Issue
Block a user