summaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-01-02 12:40:31 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2016-01-02 12:40:31 -0800
commit03adf524140dce211372124895fa4356376329a8 (patch)
treeaf6efcf261a5ae3cf561681a40dc833483a1884a /Test
parent37483: save and possibly restore cshnullglob failure state around each evalua... (diff)
downloadzsh-03adf524140dce211372124895fa4356376329a8.tar
zsh-03adf524140dce211372124895fa4356376329a8.tar.gz
zsh-03adf524140dce211372124895fa4356376329a8.tar.bz2
zsh-03adf524140dce211372124895fa4356376329a8.tar.lz
zsh-03adf524140dce211372124895fa4356376329a8.tar.xz
zsh-03adf524140dce211372124895fa4356376329a8.tar.zst
zsh-03adf524140dce211372124895fa4356376329a8.zip
37493: readonly + POSIX_BUILTINS == typeset -gr
Diffstat (limited to 'Test')
-rw-r--r--Test/B02typeset.ztst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst
index 7d65cc8a7..681fe73c7 100644
--- a/Test/B02typeset.ztst
+++ b/Test/B02typeset.ztst
@@ -479,12 +479,12 @@
setopt POSIXBUILTINS
readonly pbro
print ${+pbro} >&2
- (typeset pbro=3)
+ (typeset -g pbro=3)
(pbro=4)
- readonly -p | grep pbro >&2 # shows up as "readonly" although unset
- typeset -r pbro # idempotent (no error)...
+ readonly -p pbro >&2 # shows up as "readonly" although unset
+ typeset -gr pbro # idempotent (no error)...
print ${+pbro} >&2 # ...so still readonly...
- typeset +r pbro # ...can't turn it off
+ typeset -g +r pbro # ...can't turn it off
)
1:readonly with POSIX_BUILTINS
?0