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
  • 26,889
  • 20
  • 81
  • 86
Rahul Patil
  • 24,281
  • 25
  • 80
  • 96

0 Answers0