4623 shaares
397 liens privés
397 liens privés
"""
${parameter:-word}
If parameter is unset or null, the expansion of word is substituted. Otherwise, the value of parameter is substituted.
"""
Exemple d'utilisation:
"""
exitcode=${2:-1}
"""
Si $2 est défini, exitcode = $2. Sinon exitcode = $1