In a shell script I want to call function f1_1 and the only way I found is the following.
#!/bin/bash
function f1 () {
function f1_1 () {
echo "Calling function f1_1"
}
echo "Calling function f1"
}
f1
f1_1
My problem is that when I do it this way my output is the following
Calling function f1
Calling function f1_1
Is there a way to have an output with only the command inside f1_1 function
Calling function f1_1
I want this because function f1_1 have to be inside f1 function and I don't want to run the rest commands inside f1 function.