4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
27 # variable tree test #003
28 # Propose of this test is whether ksh93 handles global variable trees
29 # and function-local variable trees the same way, including "nameref"
30 # and "unset" handling.
37 print
-u2 -r ${Command}[$1]: "${@:2}"
38 (( Errors
< 127 && Errors
++ ))
40 alias err_exit
='err_exit $LINENO'
42 # the test cannot use "nounset"
57 [182c069a485316b1bc7ae001c04c7835]=(
60 -adobe-avantgarde-demi-r-normal--199-120-1200-1200-p-1130-iso8859-1
62 'Copyright Notice not available'
72 typeset -a filenames=(
73 X11Rx/R6.4/xc/programs/Xserver/XpConfig/C/print/models/SPSPARC2/fonts/AvantGarde-Demi.pmf
75 md5sum=182c069a485316b1bc7ae001c04c7835
77 -adobe-avantgarde-demi-r-normal--199-120-1200-1200-p-1130-iso8859-1
80 [7db15b51965d8fe1f1c55fcb101d7616]=(
83 -adobe-avantgarde-demi-i-normal--199-120-1200-1200-p-1130-iso8859-1
85 'Copyright Notice not available'
95 typeset -a filenames=(
96 X11Rx/R6.4/xc/programs/Xserver/XpConfig/C/print/models/SPSPARC2/fonts/AvantGarde-DemiOblique.pmf
98 md5sum=7db15b51965d8fe1f1c55fcb101d7616
100 -adobe-avantgarde-demi-i-normal--199-120-1200-1200-p-1130-iso8859-1
103 [a37e4a4a5035abf6f294d830fbd9e775]=(
104 typeset -a comments=(
106 -adobe-avantgarde-demi-r-normal--422-120-2540-2540-p-2395-iso8859-1
108 'Copyright (c) 1985, 1987, 1989, 1990, 1991 Adobe Systems Incorporated. All Rights Reserved.ITC Avant Garde Gothic is a registered trademark of International Typeface Corporation.'
118 typeset -a filenames=(
119 fox-gate/XW_NV/open-src/tarballs/xorg-server-1.3.0.0/hw/xprint/config/C/print/models/PSdefault/fonts/AvantGarde-Demi.pmf
121 md5sum=a37e4a4a5035abf6f294d830fbd9e775
123 -adobe-avantgarde-demi-r-normal--422-120-2540-2540-p-2395-iso8859-1
126 [da3d6d94fcf759b95c7f829ce5619374]=(
127 typeset -a comments=(
129 -adobe-avantgarde-demi-i-normal--422-120-2540-2540-p-2395-iso8859-1
131 'Copyright (c) 1985, 1987, 1989, 1990, 1991 Adobe Systems Incorporated. All Rights Reserved.ITC Avant Garde Gothic is a registered trademark of International Typeface Corporation.'
141 typeset -a filenames=(
142 fox-gate/XW_NV/open-src/tarballs/xorg-server-1.3.0.0/hw/xprint/config/C/print/models/PSdefault/fonts/AvantGarde-DemiOblique.pmf
144 md5sum=da3d6d94fcf759b95c7f829ce5619374
146 -adobe-avantgarde-demi-i-normal--422-120-2540-2540-p-2395-iso8859-1
165 typeset
-A xlfd_tree.l1
167 eval "xlfd_tree=$( example_tree )"
172 for i
in "${!xlfd_tree.l1[@]}" ; do
173 for j
in "${!xlfd_tree.l1["$i"].l2[@]}" ; do
174 for k
in "${!xlfd_tree.l1["$i"].l2["$j"].l3[@]}" ; do
175 nameref vndnode
=xlfd_tree.l1
["$i"].l2
["$j"].l3
["$k"]
177 for l
in "${!vndnode.entries[@]}" ; do
178 nameref node
=vndnode.entries
["$l"]
180 for fn
in "${node.filenames[@]}" ; do
181 if [[ "${fn}" != ~
(E
)x-re_gate_XW_NV_MWS
]] ; then