•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 456,418 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,635 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 1001 | Replies: 0
![]() |
•
•
Join Date: Apr 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- VB's Left, Right, Mid Functions in C++? (C++)
- Double Linked Lists and Functions required (C++)
- writing a script (Shell Scripting)
- Need help with BASH to MS-DOS Batch conversion. (Shell Scripting)
- access Digital Camera Functions (C++)
- Pipe inside variable isn't working in bash (Shell Scripting)
- embPerl or PHP (Perl)
Other Threads in the Shell Scripting Forum
- Previous Thread: anyone tried HLS firewall
- Next Thread: send mail after script finishes running


Linear Mode