diff --git a/src/cli.rs b/src/cli.rs index 949c7a359f..34a208e08c 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -93,6 +93,8 @@ fn load_plugin(path: &std::path::Path, context: &mut Context) -> Result<(), Shel Err(e) => Err(ShellError::string(format!("Error: {:?}", e))), }; + let _ = child.wait(); + result } diff --git a/src/commands/plugin.rs b/src/commands/plugin.rs index a14cb1a609..2cd63c0c98 100644 --- a/src/commands/plugin.rs +++ b/src/commands/plugin.rs @@ -207,6 +207,8 @@ pub fn filter_plugin( } }; + let _ = child.wait(); + result } _ => {