Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
${a}
It is required if the variable is adjacent to other text.
There are expansions for handling missing positional parameters and assigning
default values to parameters.
${parameter:-word}
If the parameter is unset or is empty, this expansion results in the value of word.
If the parameter is not empty, the expansion results in the value of the parameter.
${parameter:=word}
If the parameter is unset or is empty, this expansion results in the value of word.
In addition, the value of word is assigned to parameter. If paramter is not empty,
the expansion results in the value of the parameter. Positional and other special
parameters can't be assigned this way.
${parameter:?word}
If the paramter is unset or empty, this expansion causes the script to exit with an
error. If the parameter is not empty, the expansion results in the value of the
parameter.
${parameter:+word}
If parameter is unset or empty, the expansion results in nothing. If parameter is
not empty, the value of word is substituted for parameter; however, the value of
parameter is not changed.