typeset, whence — Shell Built-in Command to Get/Set Attributes and Values for Shell Variables and Functions

Synopsis

** 
typeset [+ HLRZfilrtux[n]] [name[=value] ]... 
whence [-pv] name... 

Description

The typeset built-in command sets attributes and values for shell variables and functions. When you invoke typeset inside a function, a new instance of the variable’s name is created. The variable’s value and type are restored when the function completes. You can specify the following attributes.

-f Specify that names refer to function names instead of variable names. No assignments can be made, and the only other valid options are -t, -u, and -x. The -t option turns on execution tracing for this function. The -u option marks this function undefined. ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.