HP-UX Reference (11i v3 07/02) - 1 User Commands N-Z (vol 2)
s
sh-posix(1) sh-posix(1)
& typeset [{-+}
LRZfilrtux [n]] [name[=value]]... name=
value [name=value]...
Assign types and a value to a local named parameter name. See also the
export special command.
Parameter assignments remain in effect after the command completes. When invoked inside a func-
tion, create a new instance of the parameter name. The parameter value and type are restored when
the function completes.
The following list of attributes can be specified. Use
+ instead of - to turn the options off.
-L Left justify and remove leading blanks from value.Ifn is nonzero, it defines the width of the
field; otherwise, it is determined by the width of the value of first assignment. When 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.
Flagged as
leftjust n.
-R Right justify and fill with leading blanks. If n is nonzero, it defines the width of the field; other-
wise, 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.
Flagged as
rightjust n.
-Z Right justify and fill with leading zeros if the first nonblank character is a digit and the
-L
option has not been set. If n is nonzero it defines the width of the field; otherwise, it is deter-
mined by the width of the value of first assignment. Flagged as zerofill n plus the flag for
-L or -R.
-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). Flagged as
func-
tion
.
-i Parameter is an integer. This makes arithmetic faster. If n is nonzero it defines the output
arithmetic base; otherwise, the first assignment determines the output base. Flagged as
integer [base n].
-l Convert all uppercase characters to lowercase. The uppercase -u option is turned off. Flagged
as lowercase.
-r Mark any given name as "read only". The name cannot be changed by subsequent assignment.
Flagged as readonly.
-t Tag the named parameters. Tags are user-definable and have no special meaning to the shell.
Flagged as tagged.
-u Convert all lowercase characters to uppercase characters. The lowercase -l option is turned off.
Flagged as uppercase.
-x Mark any given name for automatic export to the environment of subsequently executed com-
mands. Flagged as export.
typeset alone displays a list of parameter names, prefixed by any flags specified above.
typeset - displays the parameter names followed by their values. Specify one or more of the
option letters to restrict the list. Some options are incompatible with others.
typeset + displays the parameter names alone. Specify one or more of the option letters to res-
trict the list. Some options are incompatible with others.
ulimit [-HSacdfnst][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 or the soft limit 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 nei-
ther -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 The number of 512-byte blocks in the size of core dumps.
252 Hewlett-Packard Company − 10 − HP-UX 11i Version 3: February 2007