i-bash/tests/func2.sub

28 lines
277 B
Text
Raw Normal View History

2001-04-06 19:14:31 +00:00
funca() (
echo func-a
)
funcb() ( echo func-b )
funcc() (
echo func-c
) 2>&1
type funca
type funcb
type funcc
funca
funcb
funcc
2011-11-21 20:51:19 -05:00
# when not in posix mode, bash allows non-identifiers as function names
set +o posix
foo-bar()
{
:;
}
declare -F foo-bar
declare -f foo-bar