[Oberon] Parts & paths; was Re (3): A path variable for OLR?
peter at easthope.ca
peter at easthope.ca
Tue Aug 16 16:26:20 CEST 2016
From: Peter Matthias <PeterMatthias at web.de>
Date: Mon, 15 Aug 2016 18:57:24 +0200
> If file is not in "WRK:", "SYS:" will be used for reading. "SYS:"
> defaults to "." and can be set by "OSYSDIR=/dir".
Nice.
> Both dirs can be set by FileTools.SetSYS resp. FileTools.SetWRK.
Native Oberon has the slightly different arrangement.
"OFSTools.SetDefault WRK ~" moves WRK to the front of the
search list. An arbitrary number of volumes can be ordered.
** ETHO Behaviour **
Volume containing executables is automatically SYS.
FileSystem.Mount WRK1 AosFS <volume1> ~
FileSystem.Mount WRK2 AosFS <volume2> ~
FileSystem.Mount WRK3 AosFS <volume3> ~
OFSTools.SetDefault WRK3 ~
OFSTools.SetDefault WRK2 ~
OFSTools.SetDefault WRK1 ~
makes search path
WRK1 WRK2 WRK3 SYS
** OLR analogue **
FileTools.Set SYS <path0> ~
FileTools.Set WRK1 <path1> ~
FileTools.Set WRK2 <path2> ~
FileTools.Set WRK3 <path3> ~
FileTools.SetDefault WRK3 ~
FileTools.SetDefault WRK2 ~
FileTools.SetDefault WRK1 ~
makes search path
WRK1 WRK2 WRK3 SYS
Regards, Lyall E.
--
123456789 123456789 123456789 123456789 123456789 123456789 123456789
Tel +1 360 639 0202
http://easthope.ca/Peter.html Bcc: peter at easthope. ca
More information about the Oberon
mailing list