-
Notifications
You must be signed in to change notification settings - Fork 0
/
nestfun.sh
43 lines (43 loc) · 1.29 KB
/
nestfun.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
#
# SCRIPT: nestfun
# AUTHOR: Vidushi Bansal
# DATE: 28/08/2020
# REV: 1.1.A (Valid are A, B, D, T and P)
# (For Alpha, Beta, Dev, Test and Production)
#
#
# PLATFORM: UBUNTU
#
# PURPOSE: Check the working of nested functions
# REV LIST:
# DATE : Date of revision
# BY : AUTHOR OF MODIFICATION
# MODIFICATION: Describe the chages made. What do they enhance.
#
# set -n # Uncomment to check script syntax, without execution.
# # NOTE: Do forget comment it back as it won't allow the
# # the script to execute.
#
# set +x # Uncomment this for debugging this shell script.
#
#
################################################################
# Define Files and Variables here #
################################################################
################################################################
# Define Functions here #
f1 ()
{
f2 ()
{
echo "This is printed inside f2"
}
}
################################################################
################################################################
# Beginning of Main #
f1
f2
################################################################
# End of script #