########################################################################
# #
# This software is part of the ast package #
# Copyright (c) 1982-2012 AT&T Intellectual Property #
# and is licensed under the #
# Eclipse Public License, Version 1.0 #
# by AT&T Intellectual Property #
# #
# A copy of the License is available at #
# (with md5 checksum b35adb5213ca9657e911e9befb180842) #
# #
# Information and Software Systems Research #
# AT&T Research #
# Florham Park NJ #
# #
# David Korn <dgk@research.att.com> #
# #
########################################################################
function err_exit
{
print -u2 -n "\t"
let Errors+=1
}
alias err_exit='err_exit $LINENO'
integer Errors=0
typeset -C bar=(x=3 y=4 t=7)
integer r=9
function fn
{
}
function fun
{
}
function xfun
{
}
function xfun
{
}
{
typeset -C bar=(x=1 y=2 z=3)
function fn
{
}
false
[[ ${z[abc]} == '' ]] || err_exit 'global array element should not be visible when local element exists'
function runxrun
{
}
function runrun
{
run $1
}
}
[[ ${z[abc]} == qqq ]] || err_exit 'global associative array should not be affected by definiton in namespace'
[[ ${bar.y} == 4 ]] || err_exit 'global compound variable should not be affected by definiton in namespace'
false