December 2002
Intermediate to advanced
1616 pages
39h 57m
English
The expression ${name} (or just $name if it is not ambiguous) expands to the value of the name variable (page 610). If name is null or not set, the shell
expands ${Name} to a null string. The shell
provides the following alternatives to accepting the expanded null string as the value of the variable.
Use a default value for the variable.
Use a default value and assign that value to the variable.
Display an error.
You can choose one of these alternatives by using a modifier with the variable name.
Read now
Unlock full access