SETC - set working catalog.

Syntax:

setc [userid][[\]*[/deeper_catalog]*]* [+Verbose]

Examples:

setc fbaggins/3/s/lib
setc /morelevels/deeper	/* go down two more levels */
setc \	/* go up one level */
setc \/up1_down1	/* remove preceding level, go down one */
setc	/* reset to UMC */
setc opnsutil/gripes\	/* remove "/gripes" set "opnsutil" */
setc userid/removed\/down1/down2	/* "/removed" is removed */
	/* resulting catalog is "userid/down1/down2" */

Options:

+Verbose
displays the full catalog as generated and set by SETC.
\
removes the preceding level of catalog. This permits "going up" catalog levels. Multiple \'s remove multiple preceding levels, but you can't "back up" past a UMC (i.e. a userid is the highest level permitted). For convenience, "\down" is the same as "\/down".

Description:

SETC lets you change the working catalog stored in your UST. GCOS8 uses your working catalog name whenever a filename is preceded by a slash (/) or is a quick access filename.

A maximum of 10 levels (combined working catalog and user specified cat/file description) is allowed. If you exceed this limit, SETC issues an error message doesn't let you change your working catalog.

If you give SETC a catalog argument starting with "/" or "\", SETC fetches the current working catalog out of the UST and appends the catalog argument after it. If no "/" or "\" begin the catalog argument, SETC does not need to look in the UST, since the first part of the catalog argument is assumed to be a new userid.

After concatenating the UST information and the catalog argument, SETC next tries to remove catalogs which precede each "\". It does this by moving left, deleting everything back to the closest "/". The resulting catalog string is then set back in the UST as the new working catalog. Hence, the "\" character moves upward in the file system by removing preceding catalogs.

See Also:

expl wmi
WMI tells what catalog you are currently SETC'd to.

Copyright © 1996, Thinkage Ltd.