Likewise, functions within a script and the script itself return an exit status. The last command executed in the function or script determines the exit status. Within a script, an exit nnn command may be used to deliver an nnn exit status to the shell (nnn must be a decimal number in the 0 - 255 range).
# 0-255
Posté par Vincent . En réponse au message récupérer le status en sortie d'un applicatif dans un shell. Évalué à 3.
Je lis ici ( http://www.faqs.org/docs/abs/HTML/exit-status.html ) par exemple :
Likewise, functions within a script and the script itself return an exit status. The last command executed in the function or script determines the exit status. Within a script, an exit nnn command may be used to deliver an nnn exit status to the shell (nnn must be a decimal number in the 0 - 255 range).