diff options
author | Peter Stephenson <pws@zsh.org> | 2015-05-07 12:10:16 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-05-07 12:10:16 +0100 |
commit | 60c6bcdeae6d132c0ab770cc8491055b24f7670e (patch) | |
tree | c9c6999eda40f0df916b7e20002e0da10341b231 /Test | |
parent | 13c6d38e4b989a7185a161d3978dd5cfd3da143f (diff) | |
download | zsh-60c6bcdeae6d132c0ab770cc8491055b24f7670e.tar.gz zsh-60c6bcdeae6d132c0ab770cc8491055b24f7670e.tar.xz zsh-60c6bcdeae6d132c0ab770cc8491055b24f7670e.zip |
35054: readonly -p + POSIXBUILTINS fix.
Now displays unset variables marekd readonly
Diffstat (limited to 'Test')
-rw-r--r-- | Test/B02typeset.ztst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst index f4fb8ecb9..2edbb0b5e 100644 --- a/Test/B02typeset.ztst +++ b/Test/B02typeset.ztst @@ -475,13 +475,15 @@ print ${+pbro} >&2 (typeset pbro=3) (pbro=4) + readonly -p | grep pbro >&2 # shows up as "readonly" although unset typeset -r pbro # idempotent (no error)... print ${+pbro} >&2 # ...so still readonly... typeset +r pbro # ...can't turn it off ) -1:Readonly with POSIX_BUILTINS +1:readonly with POSIX_BUILTINS ?0 ?(eval):5: read-only variable: pbro ?(eval):6: read-only variable: pbro +?typeset -r pbro ?0 -?(eval):9: read-only variable: pbro +?(eval):10: read-only variable: pbro |