mirror of
https://github.com/nushell/nushell.git
synced 2025-01-03 04:50:28 +01:00
Merge branch 'master' of https://github.com/wycats/nushell
This commit is contained in:
commit
33580db257
@ -129,12 +129,13 @@ impl ExternalCommand {
|
|||||||
input: ClassifiedInputStream,
|
input: ClassifiedInputStream,
|
||||||
stream_next: StreamNext,
|
stream_next: StreamNext,
|
||||||
) -> Result<ClassifiedInputStream, ShellError> {
|
) -> Result<ClassifiedInputStream, ShellError> {
|
||||||
let mut cmd = self.name.clone();
|
let mut process = Exec::shell(&self.name);
|
||||||
|
|
||||||
for arg in self.args {
|
for arg in self.args {
|
||||||
cmd.push_str(" ");
|
process = process.arg(arg)
|
||||||
cmd.push_str(&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 {
|
let mut process = match stream_next {
|
||||||
StreamNext::Last => process,
|
StreamNext::Last => process,
|
||||||
|
Loading…
Reference in New Issue
Block a user