GOTO function in bash?
Hello, I don't know hardly any bashscripting at all, so bear with me.
Is there an equivalent of the DOS function GOTO in bash? What I want is to put a "label" somewhere in the code, and be able to jump back to that location.
Example:
I have a command that exits with status 0, and if it does not, I want to run the program from the top again. I know how to write the if-statement, but not how to go back to a certain location in the code.
Any suggestions?
|