tizen 2.3.1 release
[external/bash.git] / tests / func2.sub
1 funca() (
2         echo func-a
3 )
4
5 funcb() ( echo func-b )
6
7 funcc() (
8         echo func-c
9 ) 2>&1
10
11 type funca
12 type funcb
13 type funcc
14
15 funca
16 funcb
17 funcc
18
19 # when not in posix mode, bash allows non-identifiers as function names
20 set +o posix
21 foo-bar()
22 {
23         :;
24 }
25
26 declare -F foo-bar
27 declare -f foo-bar