i-bash/tests/func2.sub
2011-11-21 20:51:19 -05:00

27 lines
277 B
Text

funca() (
echo func-a
)
funcb() ( echo func-b )
funcc() (
echo func-c
) 2>&1
type funca
type funcb
type funcc
funca
funcb
funcc
# 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