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).
This commit is contained in:
Mahmoud Al-Qudsi 2024-06-26 19:10:51 -05:00
parent f711c874ce
commit ee4d578171

View file

@ -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