From 23e7f77156887c4b79d3169e2a3bf223c02a1e99 Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Sat, 28 Dec 2024 18:20:00 +0800 Subject: [PATCH] Remove eval usage in fish launcher (#961) --- src/shell_install/fish.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shell_install/fish.rs b/src/shell_install/fish.rs index ed89159b..01b130d1 100644 --- a/src/shell_install/fish.rs +++ b/src/shell_install/fish.rs @@ -35,9 +35,8 @@ const FISH_FUNC: &str = r" function br --wraps=broot set -l cmd_file (mktemp) if broot --outcmd $cmd_file $argv - read --local --null cmd < $cmd_file + source $cmd_file rm -f $cmd_file - eval $cmd else set -l code $status rm -f $cmd_file