Fonctions en Shell Debian/ubuntu/gentoo
Résolu/Fermé
EminoMeneko
Messages postés
2434
Date d'inscription
jeudi 24 janvier 2008
Statut
Membre
Dernière intervention
23 mai 2018
-
19 mars 2008 à 11:02
EminoMeneko Messages postés 2434 Date d'inscription jeudi 24 janvier 2008 Statut Membre Dernière intervention 23 mai 2018 - 13 avril 2008 à 12:03
EminoMeneko Messages postés 2434 Date d'inscription jeudi 24 janvier 2008 Statut Membre Dernière intervention 23 mai 2018 - 13 avril 2008 à 12:03
A voir également:
- Fonctions en Shell Debian/ubuntu/gentoo
- Telecharger ubuntu - Télécharger - Systèmes d'exploitation
- Classic shell windows 10 français - Télécharger - Personnalisation
- Ubuntu 32 bits - Télécharger - Systèmes d'exploitation
- Efi shell version 2.50 - Forum Windows 10
- Startup.nsh shell ✓ - Forum Windows 10
2 réponses
dubcek
Messages postés
18718
Date d'inscription
lundi 15 janvier 2007
Statut
Contributeur
Dernière intervention
22 mars 2024
5 615
19 mars 2008 à 14:32
19 mars 2008 à 14:32
essayer avec #!/bin/bash pour être sur
changer if [ $? = 0 ] par if [ $? -eq 0 ]
et j'ajouterais un ; après la dernière instruction de chaque fonction
{ list; }
Placing a list of commands between curly braces causes the list to be executed in the current shell context. No subshell is created. The semicolon (or newline) following list is required.
changer if [ $? = 0 ] par if [ $? -eq 0 ]
et j'ajouterais un ; après la dernière instruction de chaque fonction
{ list; }
Placing a list of commands between curly braces causes the list to be executed in the current shell context. No subshell is created. The semicolon (or newline) following list is required.
EminoMeneko
Messages postés
2434
Date d'inscription
jeudi 24 janvier 2008
Statut
Membre
Dernière intervention
23 mai 2018
318
13 avril 2008 à 12:03
13 avril 2008 à 12:03
J'avais pas mis à jour mais j'ai bien résolu le problème peu de temps après en mettant bash :)
Merci pour ton aide qui va plus loin que la solution. :)
Merci pour ton aide qui va plus loin que la solution. :)