Hi,
When I try to call a function1 again inside this same function I get unexpected results!
this is MENUFUNCTION :
the issue: when I retype [1] second time (or another) I don't get the result needed it just prompt the choice number...
Thank's in advance
When I try to call a function1 again inside this same function I get unexpected results!
Code:
case $choixMenu in
0) PROMPT ;;
1) echo "$PWD" ;
MENUFUNCTION ;
2) echo "Veuillez entrer la nouvelle valeur de PWD";
read PWD;
echo "$PWD" ;
MENUFUNCTION ;
esac
Code:
function MENUFUNCTION
{
echo " [1]-AFFICHER"
echo " [2]-MODIFIER"
echo " [0]-REVENIR AU MENU PRINCIPAL"
echo
echo " Veillez faire un choix!"
read choixMenu
}
Thank's in advance
Comment