android_mt6572_jiabo/external/bash/tests/func2.sub
2025-09-05 16:56:03 +08: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