will assign /execute to /f0/bin , whereas /f0/mydir>ASSIGN /temp \ . will assign /temp to . , which would let processes place their temporary files in their current directory. Set an environment string SET Display current settings An environment string is a method of passing information about your computer to a program, or to substitute (similar to assign ) one term for another term or terms. It can be used to change the names you use for commands. SET - Deletes all current settings. SET name1 Deletes the current setting for the environment string with name ‘name1’.
SET name1=setting1 [name2=setting2 ...] SET "name1=setting1 with spaces in it" Sets the environment string with name ‘name1’ to setting ‘setting1’. If the desired setting (or name) has special characters such as space tab ! * ? | ^ > argument to ‘set’ should be wrapped in double quotes as shown. SET -e name1=setting1 Sets the environment string with name ‘name1’ to setting ‘setting1’, making ‘name1’ suitable for command aliasing, so the command interpreter will repace ‘name1’ with ‘setting1’ when ‘name1’ appears as the first part of a command. For example, set -e del=delete for MSDOS types. Now you can type del , and the delete command will be executed.
If an environment string does not have the -e flag it can still be used as a command alias by preceding it with a ‘$’ character. SET -a name1=setting1 Sets the environment string with name ‘name1’ to setting ‘setting1’, making ‘name1’ suitable for aliasing anywhere in the command line, so the command interpreter will repace ‘name1’ with ‘setting1’ when ‘name1’ appears ANY- WHERE in a command line. For example, set -a work=$home/mydir allows you to abbreviate pathnames to work/myfile , (without a ‘$’ character). If an environment string does not have the -a flag you can still force substitution by preceding it with a ‘$’ character.
set is a 1616/OS inbuilt command The set command permits the manipulation of the environment strings which are associated with your current interactive command shell. Each command shell can have a different environment, thus allowing multiple users to customise their own environment. An environment string consists of a name and a setting, each of which is an arbitrary length ASCII string. 1616/OS Commands User Tutorial Manual Page 73