Created
November 4, 2013 12:08
-
-
Save peczenyj/7301627 to your computer and use it in GitHub Desktop.
chamando a mesma funcao de forma recursiva
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function foo { | |
| read -p "digite a opcao: " OPCAO | |
| case $OPCAO in | |
| a) echo "a" ;; | |
| b) echo "b" ;; | |
| c) foo ;; | |
| *) echo "opcao invalida '$OPCAO'"; exit 1 ;; | |
| esac | |
| } | |
| foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment