From b560466676ee7f3a36ab3121eecbd599c5f7f851 Mon Sep 17 00:00:00 2001 From: WindSoilder Date: Tue, 2 Aug 2022 11:45:50 +0800 Subject: [PATCH] fix on windows --- crates/nu-command/src/system/run_external.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-command/src/system/run_external.rs b/crates/nu-command/src/system/run_external.rs index 07058be9fb..06502f5e23 100644 --- a/crates/nu-command/src/system/run_external.rs +++ b/crates/nu-command/src/system/run_external.rs @@ -132,7 +132,7 @@ impl ExternalCommand { Err(_) => { let mut fg_process = ForegroundProcess::new(self.create_process(&input, true, head)?); - child = process.spawn(); + child = fg_process.spawn(); } Ok(process) => { child = Ok(process);