summaryrefslogtreecommitdiffstats
path: root/src/opener.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-04-04 23:49:33 +0200
committerqkzk <qu3nt1n@gmail.com>2023-04-04 23:49:33 +0200
commitd568556a4a1a211056efab10ca55a5a6631412b7 (patch)
tree2ec0dd9f84f1f08a1887e2574ed2e3f72c7d98d0 /src/opener.rs
parentd04825d36f294560d7a1db01680042a9ea506260 (diff)
basic shell execution with !
Diffstat (limited to 'src/opener.rs')
-rw-r--r--src/opener.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opener.rs b/src/opener.rs
index 46ad71d..2ba9ec0 100644
--- a/src/opener.rs
+++ b/src/opener.rs
@@ -396,7 +396,7 @@ pub fn execute_in_child(exe: &str, args: &Vec<&str>) -> Result<std::process::Chi
/// Execute a command with options in a fork.
/// Returns an handle to the child process.
/// Branch stdin, stderr and stdout to /dev/null
-pub fn execute_in_child_without_output(exe: &str, args: &Vec<&str>) -> Result<std::process::Child> {
+pub fn execute_in_child_without_output(exe: &str, args: &[&str]) -> Result<std::process::Child> {
info!("execute_in_child_without_output. executable: {exe}, arguments: {args:?}",);
Ok(Command::new(exe)
.args(args)