blob: 41a3844bdb72c662c4badab016d795065e98f67d [file] [log] [blame]
Jari Aalto28ef6c32001-04-06 19:14:31 +00001funca() (
2 echo func-a
3)
4
5funcb() ( echo func-b )
6
7funcc() (
8 echo func-c
9) 2>&1
10
11type funca
12type funcb
13type funcc
14
15funca
16funcb
17funcc
Chet Ramey00018032011-11-21 20:51:19 -050018
19# when not in posix mode, bash allows non-identifiers as function names
20set +o posix
21foo-bar()
22{
23 :;
24}
25
26declare -F foo-bar
27declare -f foo-bar