LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2004, 04:52 PM   #1
GUIPenguin
Member
 
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Rep: Reputation: 30
Unhappy Simple Linux goto Problem


This is quite simple, I know but it isnt seeming to work
For one thing is goto a regestered linux shell command??
I need to include goto in one of my scripts and it doesnt seem to be working

:label

goto label

Is there another way of easly jumping to a place in a script, thanks alot
-John

Last edited by GUIPenguin; 09-23-2004 at 05:14 PM.
 
Old 09-23-2004, 05:20 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,265

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
AFAIK the BASH shell does not have a goto command but the C shell does. Without knowing the program flow of your script I can not offer any alternatives.
 
Old 09-23-2004, 05:47 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Can you show us your script (or at least the relevant piece). 'goto' is generally considered a bad idea... see here : http://www.acm.org/classics/oct95/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Linux Kernel Module Problem for 2.4.31 KneeLess Programming 3 08-19-2005 10:59 PM
simple linux command questions herve2001 Slackware 5 02-11-2005 08:44 PM
Simple grep command problem acis Linux - General 2 07-16-2004 01:21 PM
booting linux in simple command line tombomb300 Linux - Newbie 1 10-18-2003 02:49 PM
Simple help in Linux command line daeojkim Programming 3 09-30-2003 11:21 PM


All times are GMT -5. The time now is 09:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration