Is there a way within a KSH to exit a case statement and go to a certain line for next execution with the code? Or are there goto labels you can use? Anything like this used instead of nesting tons of branching?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are no labels or goto. However, you can exit a deeply-nested loop by passing a number to the “break” builtin: break 2 to exit two levels, break 3 to exit three levels, etc.