Skip to content

Commit 5e4937f

Browse files
committed
Nested function in GitHub
1 parent 9c29a5b commit 5e4937f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
echo "Nested functions"
3+
4+
# First function
5+
function1()
6+
{
7+
echo "Function 1 body"
8+
function2;
9+
}
10+
11+
# Second function
12+
function2()
13+
{
14+
echo "Function 2 body"
15+
}
16+
17+
function1
18+

0 commit comments

Comments
 (0)