|
| |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
Topic : Referencing Variables
|
|
Author : CodeHUNT
|
Total Visits: 92
|
|
Published Date:
Monday, March 27, 2000
|
|
|
Use $variable (or, if necessary, ${variable}) to reference
the value.
# Most user's have a /bin of their own
if [ "$USER" != "root" ]; then
PATH=$HOME/bin:$PATH
else
PATH=/etc:/usr/etc:$PATH
fi
The braces are required for concatenation constructs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|