mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 00:13:21 +01:00
Fix external args
This commit is contained in:
parent
b7d15c2afd
commit
204891e7c2
@ -129,12 +129,13 @@ impl ExternalCommand {
|
||||
input: ClassifiedInputStream,
|
||||
stream_next: StreamNext,
|
||||
) -> Result<ClassifiedInputStream, ShellError> {
|
||||
let mut cmd = self.name.clone();
|
||||
let mut process = Exec::shell(&self.name);
|
||||
|
||||
for arg in self.args {
|
||||
cmd.push_str(" ");
|
||||
cmd.push_str(&arg);
|
||||
process = process.arg(arg)
|
||||
}
|
||||
let process = Exec::shell(&cmd).cwd(context.env.lock().unwrap().cwd());
|
||||
|
||||
process = process.cwd(context.env.lock().unwrap().cwd());
|
||||
|
||||
let mut process = match stream_next {
|
||||
StreamNext::Last => process,
|
||||
|
Loading…
Reference in New Issue
Block a user