On Mon, 2006-07-24 at 15:19 +1000, Cameron Simpson wrote: > On 24Jul2006 09:51, Parag Kalra <[EMAIL PROTECTED]> wrote: > | Hi everyone I wanted to know, whether "goto" command is available > for bash > | shell scripting. If there is, then how to use it. >
I thought that the GOTO statement was banned by the gods...? > No, and you do not want it. > > | Actually I wanted to transfer control to some other line in my shell > script. > | Is there any other away of achieving it. > > Case statements, and while and if are your control constructs. > use them, together with variables to hold state. > > A case statement may most closely match what you're doing. > -- > Cameron Simpson <[EMAIL PROTECTED]> DoD#743 > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/0XFolB/TM --------------------------------------------------------------------~-> To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be removed. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/LINUX_Newbies/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
