diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2016-10-24 07:14:39 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-10-24 07:14:39 -0700 |
commit | 0f5e670cde5f844680a20f986786249dfe983584 (patch) | |
tree | f912a4991610294666f2ec708dff1d87a58ea0b5 /Test/B02typeset.ztst | |
parent | 71dd0ab62ecf67e3a4a60749e9f5b1cfc9ac0ec4 (diff) | |
download | zsh-0f5e670cde5f844680a20f986786249dfe983584.tar.gz zsh-0f5e670cde5f844680a20f986786249dfe983584.tar.xz zsh-0f5e670cde5f844680a20f986786249dfe983584.zip |
"typeset -p" uses "export" commands or the "-g" option for parameters that are not local to the current scope
Diffstat (limited to 'Test/B02typeset.ztst')
-rw-r--r-- | Test/B02typeset.ztst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst index d6d24210b..6d85a63fe 100644 --- a/Test/B02typeset.ztst +++ b/Test/B02typeset.ztst @@ -454,7 +454,7 @@ fn() { typeset -p array nonexistent; } fn 1:declare -p shouldn't create scoped values ->typeset -a array=( foo bar ) +>typeset -g -a array=( foo bar ) ?fn:typeset: no such variable: nonexistent unsetopt typesetsilent @@ -490,7 +490,7 @@ ?0 ?(eval):5: read-only variable: pbro ?(eval):6: read-only variable: pbro -?typeset -r pbro +?typeset -g -r pbro ?0 ?(eval):10: read-only variable: pbro |