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

Re: [PATCH] Do not export references even when ALLEXPORT is enabled



Upon what previous patch does this one depend?

It was built on top of workers/54946 but doesn't technically depend on it. Both added a test at the end of Test/K01nameref.ztst. That's why the patching failed. Here is an updated patch.

Philippe

diff --git a/Test/K01nameref.ztst b/Test/K01nameref.ztst
index 95b8e5dbc..5082d1011 100644
--- a/Test/K01nameref.ztst
+++ b/Test/K01nameref.ztst
@@ -2349,4 +2349,14 @@ F:converting from association/array to string should work here too
 >B:16#FF
 >C:16#FF
 
+ typeset -n ref1
+ setopt allexport
+ ref1=var
+ typeset -n ref2
+ unsetopt allexport
+ typeset -p ref1 ref2
+0:references are not exported
+>typeset -n ref1=var
+>typeset -n ref2
+
 %clean


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