HP-UX Reference (11i v2 03/08) - 1 User Commands A-M (vol 1)

k
ksh(1) ksh(1)
statement is executed inside the body of a function, the command arg is executed after
the function completes. If sig is
0
or EXIT for a trap set outside any function, the
command arg is executed on exit from the shell. The
trap command with no arguments
prints a list of commands associated with each signal number.
%% typeset [ ±LRZfilrtux[ n ]][name[=value ]] ...
Parameter assignments remain in effect after the command completes. When invoked
inside a function, a new instance of the parameter name is created. The parameter value
and type are restored when the function completes. The following list of attributes can be
specified:
-L Left justify and remove leading blanks from value .Ifn is non-zero, it defines
the width of the field. Otherwise, it is determined by the width of the value of
first assignment. When the name is assigned, the value is filled on the right
with blanks or truncated, if necessary, to fit into the field. Leading zeros are
removed if the
-Z option is also set. The
-R option is turned off.
-R Right justify and fill with leading blanks. If n is non-zero, it defines the width
of the field. Otherwise, it is determined by the width of the value of first
assignment. The field is left-filled with blanks or truncated from the end if the
parameter is reassigned. The
-L option is turned off.
-Z Right justify and fill with leading zeros if the first non-blank character is a
digit and the
-L option has not been set. If n is non-zero, it defines the width
of the field. Otherwise, it is determined by the width of the value of first
assignment.
-f Cause name to refer to function names rather than parameter names. No
assignments can be made to the name declared with the typeset statement.
The only other valid options are -t (which turns on execution tracing for this
function) and -x (which allows the function to remain in effect across shell
procedures executed in the same process environment).
-i Parameter is an integer. This makes arithmetic faster. If n is non-zero, it
defines the output arithmetic base; otherwise the first assignment determines
the output base.
-l Convert all uppercase characters to lowercase. The uppercase -u option is
turned off.
-r Any given name is marked "read only" and cannot be changed by subsequent
assignment.
-t Tag the named parameters. Tags are user definable and have no special
meaning to the shell.
-u Convert all lowercase characters to uppercase characters. The lowercase -l
option is turned off.
-x Mark any given name for automatic export to the environment of subsequently
executed commands.
Using
+ instead of - causes these options to be turned off. If no name argu-
ments are given but options are specified, a list of names (and optionally the
values) of the parameters that have these options set is printed. Using
+
instead of - retains the values to be printed. If neither names nor options are
given, the names and attributes of all parameters are printed.
ulimit [-HSacdfst][limit]
Set or display a resource limit. The limit for a specified resource is set when limit is
specified. The value of limit can be a number in the unit specified with each resource, or
the keyword unlimited.
The
-H and -S flags specify whether the hard limit (-H) is set or the soft limit (-S) is set
for the given resource. A hard limit cannot be increased once it is set. A soft limit can be
increased up to the hard limit. If neither -H nor -S is specified, the limit applies to both.
The current resource limit is printed when limit is omitted. In this case, the soft limit is
printed unless
-H is specified. When more than one resource is specified, the limit name
and unit are printed before the value.
If no option is given,
-f is assumed.
-a List all of the current resource limits.
-c List or set the number of 512-byte blocks in the size of core dumps.
Section 1418 Hewlett-Packard Company 16 HP-UX 11i Version 2: August 2003