B()
{
}
A()
{
calling a function B
}
for condition
do
calling a function A
done
Shall after executing function B, the control will return back to loop?
Thanks in advance
B()
{
}
A()
{
calling a function B
}
for condition
do
calling a function A
done
Shall after executing function B, the control will return back to loop?
Thanks in advance
This is how it works:
#! /bin/bash
functB () {
echo "Im in functB"
}
functA () {
echo "Im in functA. Going to functB"
functB
echo "Im back in functA"
}
for x in 1
do
echo "Im in for loop. Going to functA"
functA
echo "Im back in for-loop"
done
$ ./test.sh
Im in for loop. Going to functA
Im in functA. Going to functB
Im in functB
Im back in functA
Im back in for-loop
Thanks a lot