From 29bc4985fc53bd949253b292d846d6e16a97c2ff Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Sat, 25 May 2019 15:23:35 -0700 Subject: [PATCH] Build our own args before shelling --- src/commands/classified.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/commands/classified.rs b/src/commands/classified.rs index be47cb562..8376a589c 100644 --- a/src/commands/classified.rs +++ b/src/commands/classified.rs @@ -122,8 +122,12 @@ impl ExternalCommand { input: ClassifiedInputStream, stream_next: StreamNext, ) -> Result { - let process = Exec::shell(&self.name) - .args(&self.args) + let mut cmd = self.name.clone(); + for arg in self.args { + cmd.push_str(" "); + cmd.push_str(&arg); + } + let process = Exec::shell(&cmd) .cwd(context.env.lock().unwrap().cwd()); let mut process = match stream_next {