There is two ways to define function in bash script.
1.
function FuncName() {
echo "$FUNCNAME"
}
2.
FuncName() {
echo "$FUNCNAME"
}
So my questions is what's the different between in this and which one should be use.
There is two ways to define function in bash script.
1.
function FuncName() {
echo "$FUNCNAME"
}
2.
FuncName() {
echo "$FUNCNAME"
}
So my questions is what's the different between in this and which one should be use.