SHELL - Faire du GOTO dans un Script.SH
Résolu
HP-Bidouille
Messages postés
20
Date d'inscription
Statut
Membre
Dernière intervention
-
HP-Bidouille Messages postés 20 Date d'inscription Statut Membre Dernière intervention -
HP-Bidouille Messages postés 20 Date d'inscription Statut Membre Dernière intervention -
A voir également:
- Bash goto
- Bingo bash - Télécharger - Divers Jeux
- Bash list ✓ - Forum Shell
- Bash permission non accordée - Forum Shell
- Bash pause ✓ - Forum Shell
- Bash addition - Forum Programmation
2 réponses
Salut,
L'expression "GOTO" n'existe pas en shell bash (ni en ksh ou csh ou dérivé).
Mais il est possible de s'en sortir avec les commandes "break" et "continue" :
http://abs.traduc.org/abs-3.4-fr/loopcontrol.html
Je connais pas le "MS-QBASIC", mais les commandes que tu attends doivent s'apparenter à ça :
http://abs.traduc.org/abs-3.4-fr/testbranch.html
http://abs.traduc.org/abs-3.4-fr/index.html
http://www.tldp.org/LDP/abs/html/index.html
http://tille.xalasys.com/training/bash/index.html
http://www.c-sait.net/cours/scripts.php
L'expression "GOTO" n'existe pas en shell bash (ni en ksh ou csh ou dérivé).
Mais il est possible de s'en sortir avec les commandes "break" et "continue" :
http://abs.traduc.org/abs-3.4-fr/loopcontrol.html
Je connais pas le "MS-QBASIC", mais les commandes que tu attends doivent s'apparenter à ça :
http://abs.traduc.org/abs-3.4-fr/testbranch.html
http://abs.traduc.org/abs-3.4-fr/index.html
http://www.tldp.org/LDP/abs/html/index.html
http://tille.xalasys.com/training/bash/index.html
http://www.c-sait.net/cours/scripts.php