Home | History | Annotate | Line # | Download | only in Shell
      1 #!./sh
      2 
      3 func_c()
      4 {
      5 	echo "Function C"
      6 	i=0
      7 	while [ $i -lt 300 ]
      8 	do
      9 		i=`expr $i + 1`
     10 	done
     11 }
     12 
     13 func_b()
     14 {
     15 	echo "Function B"
     16 	i=0
     17 	while [ $i -lt 200 ]
     18 	do
     19 		i=`expr $i + 1`
     20 	done
     21 	func_c
     22 }
     23 
     24 func_a()
     25 {
     26 	echo "Function A"
     27 	i=0
     28 	while [ $i -lt 100 ]
     29 	do
     30 		i=`expr $i + 1`
     31 	done
     32 	func_b
     33 }
     34 
     35 func_a
     36