From d88b2c36ab20ff7160a03ad5aa9902c6b4f26c79 Mon Sep 17 00:00:00 2001 From: hqt <188678175+hongqitai@users.noreply.github.com> Date: Mon, 1 Jun 2026 17:25:49 +0800 Subject: [PATCH] test(shell): fix test on non posix shell --- crates/tui/src/tools/shell/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tui/src/tools/shell/tests.rs b/crates/tui/src/tools/shell/tests.rs index c460f230..9bfb9d7d 100644 --- a/crates/tui/src/tools/shell/tests.rs +++ b/crates/tui/src/tools/shell/tests.rs @@ -119,7 +119,7 @@ fn shell_execution_scrubs_parent_env_and_keeps_explicit_env() { let result = manager .execute_with_options_env( - "printf '%s\\n%s\\n' \"${DEEPSEEK_CHILD_ENV_SHELL_SECRET-unset}\" \"${DEEPSEEK_CHILD_ENV_EXPLICIT-unset}\"", + "sh -c 'printf \"%s\\n%s\\n\" \"${DEEPSEEK_CHILD_ENV_SHELL_SECRET-unset}\" \"${DEEPSEEK_CHILD_ENV_EXPLICIT-unset}\"'", None, 5000, false,