From 03adf524140dce211372124895fa4356376329a8 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sat, 2 Jan 2016 12:40:31 -0800 Subject: 37493: readonly + POSIX_BUILTINS == typeset -gr --- Test/B02typeset.ztst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Test/B02typeset.ztst') 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 -- cgit 1.4.1