I'm setting up a shell script with menues and sub menues, options, etc. But on each menu/submenu/etc, i need a "Go back to main menu" choice. I've already got the menu set up and it works fine, but i need a way to simply restart the script from scratch, reset all variables etc etc. Or a way to exit the current script and starting it again. I've tried to do this: ScriptLoc=$(readlink -f "$0") ./ScriptLoc But that starts the "new" script inside...
Originally asked by Moonbloom on Stack Exchange (askubuntu) (CC BY-SA 3.0).