I am trying to set up a menu system where, when selected, it performs a function. In my case, the testfunc function is executed. However, this does not give an error; testfunc: command not found.
My case statement is as follows:
case "$mainMenuInput" in
1)testfunc ;;
esac
function testfunc{
echo "This is a test"
}
Thanks in advance.
source
share