When gsh is started, GS/OS assigns certain values to individual prefixes, and usually the gshrc file also sets some prefixes. A total of 32 prefixes are available to the user. The following list documents each prefix and the purpose of each.
If version 2.x of the ORCA languages are being used, then prefixes 9 and 13 through 18 should mirror prefixes 1 through 7. For a discussion on the differences in these two prefix sets, see your ORCA language reference manual.
Table 1. GS/OS Prefix Conventions
|@||AppleShare prefix. If GNO resides on an AppleShare volume, this prefix is set to the pathname of the user's directory on the file server; otherwise, this prefix is set to the same pathname as prefix number 9.|
|*||Boot volume prefix. It is not possible to modify the value of this prefix with the shell's prefix command. The only other way to access this prefix is the GS/OS _GetBootVol call.|
|0||Prefix 0 is the current working directory. It is the prefix that is changed by the cd command.|
|1, 9||This is the directory in which the currently executing program resides. In the shell, this is usually /bin. The kernel sets these prefixes appropriately for each program that is executed.|
|2, 13||These prefixes should be set to the pathname of the ORCA libraries directory.|
|3, 14||These prefixes should be set to the same directory as contains the ORCA/Shell program, ORCA.SYS16.|
|4, 15||These prefixes should be set to the pathname of the ORCA "shell" directory. This is the directory that contains the files, Editor, SysTabs, SysCmnd, and so forth.|
|5, 16||These prefixes should be set to the pathname of the ORCA languages directory.|
|6, 17||These prefixes should be set to the pathname of the ORCA utilities directory.|
|7, 18||This should be set to a temp directory; one that can be used by various programs for scratch files. Using a RAMDisk for this purpose can speed up many programs. See also the renram5(8) and mktmp(8) commands.|