51 # make sure unsetting a local variable preserves the `local' attribute
102 # make sure subshells can do a `return' if we're executing in a function
114 declare -F f1 # should print just the name
115 declare -f f1 # should print the definition, too
117 # no functions should be exported, right?
124 echo FUNCNAME = $FUNCNAME
129 echo before: FUNCNAME = $FUNCNAME
131 echo after: FUNCNAME = $FUNCNAME
134 echo before: try to assign to FUNCNAME
137 echo outside: FUNCNAME = $FUNCNAME
139 echo outside2: FUNCNAME = $FUNCNAME
141 # test exported functions (and cached exportstr)
148 ${THIS_SH} -c 'type -t zf'
149 ${THIS_SH} -c 'type zf'
151 ${THIS_SH} ./func1.sub