From 0f5e670cde5f844680a20f986786249dfe983584 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Mon, 24 Oct 2016 07:14:39 -0700 Subject: "typeset -p" uses "export" commands or the "-g" option for parameters that are not local to the current scope --- Test/B02typeset.ztst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Test/B02typeset.ztst') 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 -- cgit 1.4.1