OSF DCE Administration Guide--Core Components

OSF DCE Administration Guide—Core Components
uplevel level arg arg arg
The uplevel command is similar to eval; it concatenates arguments and executes them as
scripts but, unlike eval, uplevel executes the script in the context specified by level
rather than the current context. The level argument works the same in uplevel as it does
in upvar. Use the parent’s context with a level argument of 1. Use the context of a
first-level procedure with a level argument of #1 .
If a proc command specifies a command name that is already in effect, the new
procedure replaces the existing procedure with the same name. Except in unusual cases,
you should avoid naming new commands so that they replace existing built-in
commands.
You can rename or delete Tcl commands by using the rename command. For instance,
you could temporarily rename list to list.old and then use proc to create another
command called list. When you’re through using the manufactured list command, you
could rename list old to list, restoring the original function of list as in the following:
rename list list.old
proc list {} {
<some list operation>
}
rename list.old list
Delete a command by omitting the second argument to the rename command. The
following example deletes the list command:
rename list
2.13 String Manipulation
Many DCE administrative operations return information of some sort. For instance, the
principal show operation returns information about a principal. Usually this information
is in the form of a list, as in the following example:
dcecp> principal show R_Parsons
{fullname {}}
{uid 15}
{uuid 0000000f-d6f9-21cd-8d00-0000c08adf56}
{alias no}
{quota unlimited}
{groups users}
dcecp>
2 26 Tandem Computers Incorporated 124243