Shell script menu problem

view full story

http://www.unix.com – I have tried searching the forum but i haven't found a solution for this. I have a shell script that presents the users with menus. The menus branch out to sub menus. It is all hunky dory as long as i traverse forward. But if i am in a sub menu and return to the previous menu and choose any option, i am taken back to the sub menu. I can see where i am going wrong in my code as you can see highlighted below. But i cannot get around it unless i return to the main menu which has become quite cumbersome. Is there any way i can get around this by using goto labels? Any other modification of my co (HowTos)