Skip to content

Commit

Permalink
Remove eval usage in fish launcher (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng authored Dec 28, 2024
1 parent c0a389a commit 23e7f77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/shell_install/fish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23e7f77

Please sign in to comment.