about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2024-03-14 13:11:31 -0700
committerBart Schaefer <schaefer@zsh.org>2024-03-14 13:11:31 -0700
commit326e8635fe01239ddf14c09785eeca2394e32b95 (patch)
tree3a9d42b2360ba0535871a99103285c4aa964616b /Test
parent21fe2dce441116e90a6611527f1fcbccdc97a856 (diff)
downloadzsh-326e8635fe01239ddf14c09785eeca2394e32b95.tar.gz
zsh-326e8635fe01239ddf14c09785eeca2394e32b95.tar.xz
zsh-326e8635fe01239ddf14c09785eeca2394e32b95.zip
52752: typeset -p fixes for local exports and "export -x" / "readonly -r" output.
Diffstat (limited to 'Test')
-rw-r--r--Test/B02typeset.ztst14
1 files changed, 7 insertions, 7 deletions
diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst
index d90f17d13..914eea92b 100644
--- a/Test/B02typeset.ztst
+++ b/Test/B02typeset.ztst
@@ -311,7 +311,7 @@
  print $OUTER
 0:Export of tied parameters
 >i:n:n:e:r
->typeset -xT OUTER outer=( i n n e r )
+>local -xT OUTER outer=( i n n e r )
 >typeset -aT OUTER outer=( i n n e r )
 >OUTER=i:n:n:e:r
 >outer=( i n n e r )
@@ -1099,12 +1099,12 @@
  }
 0: no array/hash in POSIX export/readonly -p
 >zsh:
->typeset -arx zsh_exported_readonly_array=( 2 )
->typeset -Arx zsh_exported_readonly_hash=( [3]=3 )
->typeset -rx zsh_exported_readonly_scalar=1
->typeset -arx zsh_exported_readonly_array=( 2 )
->typeset -Arx zsh_exported_readonly_hash=( [3]=3 )
->typeset -rx zsh_exported_readonly_scalar=1
+>local -arx zsh_exported_readonly_array=( 2 )
+>local -Arx zsh_exported_readonly_hash=( [3]=3 )
+>local -rx zsh_exported_readonly_scalar=1
+>local -arx zsh_exported_readonly_array=( 2 )
+>local -Arx zsh_exported_readonly_hash=( [3]=3 )
+>local -rx zsh_exported_readonly_scalar=1
 >sh:
 >export zsh_exported_readonly_scalar=1
 >readonly zsh_exported_readonly_scalar=1