Bonjour, je suis en train d'écrire (laborieusement) un script bash, et j'ai un problème de syntaxe dans les boucles if : if [ -d $movie ] then ... if [ "$PAYSLOT_MOVIE" -ge "7" ] then ... else if [ "$PAYSLOT_MOVIE" -eq "1"] && [ "$PAYSLOT_MOVIE" -eq "3"] then ... fi else .... fi quand j'execute, ca me dit " syntax error near unexpected token `else' " a la ligne du second else (le dernier a la fin). Pourtant il me semble qu'on peut imbriquer des boucles ? Un exemple en est même donné a la page 123 du ABS guide. Quelqu'un a une idée ? Merci ! Jeremy -- ------ Linux Registered User #317862 You want to use GNU/Linux or Windows ? - You want to spend time or money ? Why is Microsoft raising prices on you? Because they can ! - To take that power away from them, use Linux !
Attachment:
pgpdisOQA527m.pgp
Description: PGP signature