Non puisque "souvent" /bin/sh est un lien vers /bin/bash ...
Un petit ls -l /bin te montre si tu as sh ou pas...
Ensuite les bashisme sont les structures propre à bash et incompréhensible par sh, donc tu as beau mettre /bin/sh en haut, si tu utilise ton script sur une machine qui n'a pas bash mais seulement sh => il plante... CQFD
"Gentoo" is an ancient african word, meaning "Read the F*ckin' Manual". "Gentoo" also means "I am what I am because you all are freaky n3rdz"
[^] # Re: sh
Posté par J Avd . En réponse au sondage Mon shell préféré. Évalué à -1.
Un petit ls -l /bin te montre si tu as sh ou pas...
Ensuite les bashisme sont les structures propre à bash et incompréhensible par sh, donc tu as beau mettre /bin/sh en haut, si tu utilise ton script sur une machine qui n'a pas bash mais seulement sh => il plante... CQFD
"Gentoo" is an ancient african word, meaning "Read the F*ckin' Manual". "Gentoo" also means "I am what I am because you all are freaky n3rdz"