DIR
Current Directory Variable
This system variable returns the full path name of the current directory specified by the last SET DIR directive.
Syntax
Section titled “Syntax”DIRRemarks
Section titled “Remarks”Starting with release level 8.1B2, the returned string is terminated with a slash (“/”) for UNIX and a backslash (“\”) for DOS.
The default for this variable is the full path name for the directory from which Thoroughbred Basic was executed.
A hierarchical directory must be set in the IPL file for Thoroughbred Basic to create or locate a file using the current directory.
Examples
Section titled “Examples”LET A$ = DIRIf A$ = “/usr/lib/Basic/WORD”, the current directory is “/usr/lib/Basic/WORD”
Starting with release level 8.1B2, A$ contains “/usr/lib/Basic/WORD/”.
See also
Section titled “See also”SET DIR and SET PREFIX directives
PREFIX system variable
From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF