From 8948c350d401c0199daab34d0c961bed04f08d99 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sat, 2 Mar 2024 03:48:04 +0800 Subject: [PATCH] fix: `start` command should break on the first succeeded command result (#12021) # Description Fixes #12020 # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-command/src/filesystem/start.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/nu-command/src/filesystem/start.rs b/crates/nu-command/src/filesystem/start.rs index 621bd8a3c7..f1a6338f3f 100644 --- a/crates/nu-command/src/filesystem/start.rs +++ b/crates/nu-command/src/filesystem/start.rs @@ -176,6 +176,8 @@ fn try_commands( help: "Try different path or install appropriate command\n".to_string() + &err_msg, span, }); + } else if one_result.is_ok() { + break; } } Ok(())