View Single Post

  #2 (permalink)  
Old 03-14-2005, 11:36 AM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,101
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Hee you can define function using both syntax

function foo()
{
…
…
}

OR

foo()
{
…
…
}

As far as this example concerns it is working I just cross checked. Just look at http://www.freeos.com/guides/lsst/ch04sec5.html it got examples of both syntax. May be Cygwin's bash version could be problem but i'm not sure never used Cygwin
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote