nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

may be a defect in your demo script.

This is a discussion on may be a defect in your demo script. within the Shell scripting forums, part of the Development/Scripting category; I found this in " http://www.freeos.com/guides/lsst/scripts/pass " I think "function demo()" in line 9 should be "demo()" after move it ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 03-14-2005, 07:01 AM
Junior Member
User
 
Join Date: Feb 2005
Posts: 8
Rep Power: 0
ryan
Send a message via MSN to ryan
Default may be a defect in your demo script.

I found this in " http://www.freeos.com/guides/lsst/scripts/pass "

I think "function demo()" in line 9 should be "demo()"
after move it , the script can run in environment Cygwin.

thanks your great help before.

Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-14-2005, 11:36 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,036
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
  #3 (permalink)  
Old 03-15-2005, 06:43 AM
Junior Member
User
 
Join Date: Feb 2005
Posts: 8
Rep Power: 0
ryan
Send a message via MSN to ryan
Default

Got it, I agree it.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 08:44 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36