summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2023-09-03 11:42:00 -0700
committerBart Schaefer <schaefer@zsh.org>2023-09-03 11:42:00 -0700
commit9ff1b2810e70658b2364b737478e9a996de0a644 (patch)
tree5b40cc9ed8601b7fcc6cdaef40eb2dba56571b66 /Test
parenta8853323dd631ba26869ea6e0bf1b8098247731d (diff)
downloadzsh-9ff1b2810e70658b2364b737478e9a996de0a644.tar.gz
zsh-9ff1b2810e70658b2364b737478e9a996de0a644.zip
users/29220: fix bug with assignment to private following explicit unset
Diffstat (limited to 'Test')
-rw-r--r--Test/V10private.ztst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/V10private.ztst b/Test/V10private.ztst
index b191afcb7..b876f548d 100644
--- a/Test/V10private.ztst
+++ b/Test/V10private.ztst
@@ -377,6 +377,13 @@ F:Should we allow "public" namerefs to private parameters?
*?*no such variable: ptr1
*?*no such variable: ptr2
+ () {
+ private x=1
+ unset x
+ x=2
+ }
+0:regression test for unset private
+
%clean
rm -r private.TMP