Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: [SOLVED] BASH: something similar to a C "goto" command?

  1. #11
    Join Date
    May 2007
    Location
    Canada!
    Beans
    1,709
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: BASH: something similar to a C "goto" command?

    can while loops have else?

  2. #12
    Join Date
    Oct 2006
    Location
    Austin, Texas
    Beans
    2,715

    Re: BASH: something similar to a C "goto" command?

    Quote Originally Posted by ryanVickers View Post
    can while loops have else?
    Everything after the while loop?

  3. #13
    Join Date
    May 2007
    Location
    Canada!
    Beans
    1,709
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: BASH: something similar to a C "goto" command?

    right!

    oh, dear, I'm getting tired. Well, I managed to *finish* it at least - just one more feature...

  4. #14
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,791

    Re: BASH: something similar to a C "goto" command?

    Hmm, you should consider making it a Perl script instead. Perl is easier to code than Bash and much more powerful. (and no, Perl doesn't *have* to look like line noise).

  5. #15
    Join Date
    May 2007
    Location
    Canada!
    Beans
    1,709
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: BASH: something similar to a C "goto" command?

    ok, thanks for all the help everyone, and sorry to anyone else reading this who needs a goto command

    You can all check out the new version of "mkrar", number 1.7! It is now even more safe and adapting!; it will detect if a file/folder you want to rchive/go into exists or not, and if it doesn't, it will tell you and let you try again to type a correct path in! Also, it already assumed the home directory for the path to the file, and now it will automatically assume the folder/file to archive to be the first item in the folder!!! check it out!

  6. #16
    Join Date
    Sep 2007
    Beans
    400
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: BASH: something similar to a C "goto" command?

    I would declare this thread as solved...
    Ryan, if you'd do the honors?...

  7. #17
    Join Date
    May 2007
    Location
    Canada!
    Beans
    1,709
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: BASH: something similar to a C "goto" command?

    Quote Originally Posted by HermanAB View Post
    Hmm, you should consider making it a Perl script instead. Perl is easier to code than Bash and much more powerful. (and no, Perl doesn't *have* to look like line noise).


    Yeah, I've heard good things about it, but I don't really want to learn another language! I already know actionscript 1 and 2, a tiny bit of C, (I can read better than wrote ), and now I'm learning bash, but I think that would just be too much! Unless it's really easy...

  8. #18
    Join Date
    May 2007
    Location
    Canada!
    Beans
    1,709
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: BASH: something similar to a C "goto" command?

    Quote Originally Posted by 1337455 10534 View Post
    I would declare this thread as solved...
    Ryan, if you'd do the honors?...
    yes, indubitably!

  9. #19
    Join Date
    Sep 2006
    Beans
    2,914

    Re: [SOLVED] BASH: something similar to a C "goto" command?

    Quote Originally Posted by ryanVickers View Post
    I'm looking for something that does the same thing as "goto" in C(++) for BASH. I know it's primitive, but...
    comes with csh though.

  10. #20
    Join Date
    May 2007
    Location
    Canada!
    Beans
    1,709
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: [SOLVED] BASH: something similar to a C "goto" command?

    Does that include all the same features as bash? (for other users - I"m done here )

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •