16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

type<br />

Exit Values<br />

Messages<br />

Portability<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

2 Failure because of an incorrect command-line argument<br />

Possible error messages include:<br />

name is not found<br />

type could not locate the specified name. Check that the name was<br />

specified properly and that you have the appropriate permissions.<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

Related Information<br />

alias, command, sh, whence<br />

typeset — Assign attributes and values to variables<br />

Format<br />

Description<br />

typeset ±f [tux] name ...<br />

typeset [±lprtuxH] [±iLRZ[number]] [variable[=value] ....]<br />

Invoking typeset with no options displays a list of all variables and their attributes.<br />

This list is sorted by variable name and includes quoting so that it can be reinput to<br />

the shell with the built-in command eval. When only arguments of the form +option<br />

are specified, typeset displays a list of the variables that have all specified<br />

attributes set. When only arguments of the form –option are present, typeset<br />

displays a list of all the variables having all the specified attributes set, and also<br />

displays their values.<br />

When the f option is used, typeset applies to functions; otherwise, it applies to<br />

variables. For functions, the only other applicable options are –t, –u and –x.<br />

If the command line contains at least one variable, the attributes of each variable<br />

are changed. In this case, parameters of the form –option turn on the associated<br />

attributes. Parameters of the form +option turn off the associated attributes. (Notice<br />

that, contrary to what you might expect, − means on, and + means off.) Parameters<br />

of the form variable=value turn on the associated attributes and also assign value to<br />

variable.<br />

When typeset is invoked inside a function, a new instance of each variable is<br />

created. After the function ends, each variable is restored to the value and attributes<br />

it had before the function was called.<br />

716 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!