TACL Reference Manual
UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual—429513-018
8-77
HOME Command
HOME Command
Use the HOME command to specify the first directory in which your TACL process
searches for variables before searching any other directories.
directory-name
is the name of an existing variable level of type DIRECTORY. If omitted, the root (:)
is assumed.
Considerations
•
TACL is said to be “creating a variable” when using (#)PUSH, #DEF, or (#)LOAD.
Unless the name of a variable to be created begins with a colon, TACL tries to
create the variable in the home directory.
•
If this directory is in a shared segment file, TACL cannot create any variables in it.
•
You can use the ENV Command on page 8-60 or the #HOME Built-In Variable on
page 9-192 to display the value set by this command.
•
You can save and restore the setting of HOME by pushing and popping #HOME.
•
If you detach a segment containing the current or pushed HOME directory, that
HOME directory is set to the root.
•
For additional information about directories and segment files, see the
CREATESEG Command on page 8-46.
Example
This command establishes the directory variable ANOTHER_DIR, within the directory
variable MYDIR, as the home directory:
24> HOME :mydir:mykeys
To list the home directory, you can use the ENV command. It returns this output:
25> ENV
HOME [ directory-name ]
Home :MYDIR:mykeys
Inlecho OFF
Inlout ON
Inlprefix
Inlto
Pmsearch $SYSTEM.SYSTEM, $DATA.MYFILES, #DEFAULTS
System
Use :, :UTILS.1, :UTILS.1:TACL.1
Volume $DATA.MYFILES, "AAAA"