| Text-only | Table of Contents (frame/ no frame) |
| (21) Miscellaneous |
|
eval args
netdev=NETDEV_ NETDEV_1=hme0 # As part of an initialization step defining multiple devices devnum=1 # As part of a loop over those devices ifname=$netdev$devnum # construct a variable name NETDEV_1 eval device=\$$ifname # evaluate it - device is set to hme0
exec command args
:
while :; do # this loop will go forever until broken by # a conditional test inside, or a signal done
unset var ...
typeset [+/- options] [ name[=value] ] ... (ksh only,
bash uses declare for similar functions)
-L[n]
-R[n]
-l
integer is an alias for typeset -i.
-Z[n]- As for -R, but fill with zeroes if the value is a number
-i- Lower-case convert the named variables
-u- Upper-case convert the named variables
-r- Mark the variables as readonly
-x- Export the named variables to the enviroment
-ft- The variables are taken as function names. Turn on execution tracing.
| misc-internal.src last modified Sep 14, 2005 | Introduction | Table of Contents (frame/no frame) |
Printable (single file) |
© Dartmouth College |