fresher 0 Newbie Poster

Hi, I was just wondering if there is any difference between the following below:

1. function func_name() {
//bash statements
}


and...

1. function func_name {
//bash statements
}

NB: diff b/w 1 and 2 is that there's no () in 1...
Also how can a function be defined inside another function. many thanks in advance

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.