]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/func2.sub
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / func2.sub
CommitLineData
28ef6c31
JA
1funca() (
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
0001803f
CR
18
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