1

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.

Lesmana
  • 27,439
Rahul Patil
  • 24,711

0 Answers0