diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2016-01-02 12:40:31 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-01-02 12:40:31 -0800 |
commit | 03adf524140dce211372124895fa4356376329a8 (patch) | |
tree | af6efcf261a5ae3cf561681a40dc833483a1884a /Test | |
parent | b4643fce2d4220646c0d70876822c052a677d22b (diff) | |
download | zsh-03adf524140dce211372124895fa4356376329a8.tar.gz zsh-03adf524140dce211372124895fa4356376329a8.tar.xz zsh-03adf524140dce211372124895fa4356376329a8.zip |
37493: readonly + POSIX_BUILTINS == typeset -gr
Diffstat (limited to 'Test')
-rw-r--r-- | Test/B02typeset.ztst | 8 |
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 |