From ee94272eaf15cb561d5e34325c086bc3aff31522 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Fri, 14 Nov 2025 16:12:30 +0100 Subject: [PATCH] fish_config: Remove superfluous grep `grep -Fx` will match fixed strings over the entire line. `status list-files foo` will match anything that starts with "foo". Since we always pass a suffix here, that's the same thing. If we really cared, we could do `string match "*.$suffix"` or similar. Fixes #12060 --- share/functions/fish_config.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/fish_config.fish b/share/functions/fish_config.fish index c149a40ba..90f871989 100644 --- a/share/functions/fish_config.fish +++ b/share/functions/fish_config.fish @@ -376,7 +376,7 @@ function __fish_config_matching if not set -q argv[1] set -a paths (status list-files $prefix) else - set -a paths (status list-files $prefix | grep -Fx -e"$prefix/"$argv$suffix) + set -a paths (status list-files "$prefix/"$argv$suffix) end end string join \n $paths