Option |
Meaning |
|
With no option, create local variable within function. |
-A |
Declare variable as an associative array. |
-E[n] |
Declare variable as a floating-point number.
Optional n is number of significant figures.
|
-F[n] |
Declare variable as a floating-point number.
Optional n is number of significant digits.
|
-f |
With no arguments, prints all function definitions. |
-f fname |
Print the definition of function fname. |
+f |
Print all function names. |
-ft |
Turn on trace mode for named function(s). |
+ft |
Turn off trace mode for named function(s). |
-fu |
Define given name(s) as autoloaded function(s). |
-fx |
Obsolete; does nothing in ksh93. |
-H |
Unix to host filename mapping for non-Unix system. |
-i[n] |
Declare variable as an integer. Optional n
is output base. |
-l |
Convert all letters to lowercase. |
-L |
Left-justify and remove leading spaces. |
-n |
Declare variable as a nameref. |
-p |
Print typeset commands to re-create variables
with the same attributes.
|
-r |
Make variable read-only. |
-R |
Right-justify and remove trailing spaces. |
-t |
Tag the variable. (Obsolete.) |
-u |
Convert all letters to uppercase. |
-ui[n] |
Declare variable as an unsigned integer. Optional
n is output base.
(ksh93m and newer.)
|
-x |
Export variable, i.e., put in environment so
that it is passed to subprocesses.
|
-Z[n] |
Right-justify and fill with leading zeros.
n is width, or width is set
from value used in first assignment.
|