From ee4d578171966e94d010352cb6bcb7565b3928c9 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Wed, 26 Jun 2024 19:10:51 -0500 Subject: [PATCH] completions/env: Fix errant loud `string match` This was vexing me for a while because the extraneous output presented as a valid (but unwanted) completion, i.e. with RUSTC_WRAPPER exported, `env RUSTC_W` would offer `RUSTC_W=` and `RUSTC_WRAPPER=` as completions (when only the latter should have been offered up). --- share/completions/env.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/env.fish b/share/completions/env.fish index f84e338ef..b845c94da 100644 --- a/share/completions/env.fish +++ b/share/completions/env.fish @@ -25,7 +25,7 @@ function __fish_env_redefine_vars set cmdline "$(commandline -xp)" for var in $vars - if not string match -e -- $var= $cmdline + if not string match -eq -- $var= $cmdline echo $var= end end