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

Re: OSC133 outputs shouldn't be printed in non-interactive mode



(moved to -workers from users/30701)

On Tue 14 Jul 2026, at 11:45, Daniel Colascione wrote:
> zparseopts seems to be autoloading zle somehow.

i never realised this. it's because zstyle -g needs set_list_array(),
which lives in zsh/complete. but i think that's just because it's the
main place it's used, the functionality is not specific to completion

seems like we might as well move it out of there

besides that, ksh93 also depends on zle. and i don't think we can change
that one. so there is still at least that potential use case for
non-interactive zle. not sure if there are others. there don't seem to
be any examples in the test suite

dana


diff --git a/Src/Modules/zutil.mdd b/Src/Modules/zutil.mdd
index 8064814aa..be3021bf6 100644
--- a/Src/Modules/zutil.mdd
+++ b/Src/Modules/zutil.mdd
@@ -2,8 +2,6 @@ name=zsh/zutil
 link=either
 load=yes
 
-moddeps="zsh/complete"
-
 objects="zutil.o"
 
 autofeatures="b:zformat b:zstyle b:zregexparse b:zparseopts"
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index b6a8dd235..8bf894303 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -1939,15 +1939,6 @@ set_comp_sep(void)
     return 0;
 }
 
-/* This stores the strings from the list in an array. */
-
-/**/
-mod_export void
-set_list_array(char *name, LinkList l)
-{
-    setaparam(name, zlinklist2array(l, 1));
-}
-
 /* Get the words from a variable or a (list of words). */
 
 /**/
diff --git a/Src/params.c b/Src/params.c
index e111b28c7..76197e417 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -3538,6 +3538,15 @@ setaparam(char *s, char **aval)
     return assignaparam(s, aval, ASSPM_WARN);
 }
 
+/* This stores the strings from the list in an array. */
+
+/**/
+mod_export void
+set_list_array(char *name, LinkList l)
+{
+    setaparam(name, zlinklist2array(l, 1));
+}
+
 /**/
 mod_export Param
 sethparam(char *s, char **val)




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