Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: auto-removal of suffixes



On Mon 29 Jun 2026, at 06:04, Oliver Kiddle wrote:
> In my view 64a4fbfbf, an unposted patch against _configure is wrong.

sorry. i pinged you about it a few days ago but shouldn't have just gone
ahead with it

tbh now that you say it i'm afraid i may have used -q too loosely in
other places. i'll double-check whether that's so

anyway do you mind this instead?

dana


diff --git a/Completion/Unix/Command/_configure b/Completion/Unix/Command/_configure
index 299684684..9911b78ec 100644
--- a/Completion/Unix/Command/_configure
+++ b/Completion/Unix/Command/_configure
@@ -21,7 +21,7 @@ if [[ ! -prefix - ]]; then
     compset -P 1 '*='
     _value && ret=0
   else
-    compset -S '=*' || suf=( -qS = )
+    compset -S '=*' || suf=( -r = -S = )
     _wanted -x variables expl variable compadd $suf \
         CC CFLAGS CPP CPPFLAGS CXX CXXFLAGS DEFS ERLCFLAGS FCFLAGS \
         FFLAGS GOFLAGS LDFLAGS LIBS OBJCFLAGS OBJCXXFLAGS && ret=0




Messages sorted by: Reverse Date, Date, Thread, Author