Hello
la valeur de exit() est retournée au système d'eploitation et permet de tester dans un script si la commande
a bien fini 0 ou il y a eu une erreur 1, 2 ou -1
exemple avec la commande Linux mount:
mount has the following return codes (the bits can be ORed):
0 success
1 incorrect invocation or permissions
2 system error (out of memory, cannot fork, no more loop devices)
4 internal mount bug or missing nfs support in mount
8 user interrupt
16 problems writing or locking /etc/mtab
32 mount failure
64 some mount succeeded